Back to articles
Technology Insight

Building an Enterprise Internal PaaS: Scaling Coolify with Advanced Queue Mode and Redis Sentinel on a 3-Node Cloud Cluster

May 30, 2026

Introduction to Enterprise Internal PaaS

In the modern DevOps landscape, the demand for agility has driven organizations away from complex, manual infrastructure management toward automated platforms. While public Platform-as-a-Service (PaaS) offerings like Heroku or Render provide exceptional developer experiences, they often come with data residency concerns, unpredictable pricing, and limited infrastructure control. This has fueled the rise of open-source internal PaaS solutions, with Coolify emerging as a leading self-hosted alternative.

However, running Coolify out of the box on a single server introduces a single point of failure (SPOF). For production-grade environments, businesses require high availability (HA) and horizontal scalability. This guide explores how to build a robust, enterprise-grade internal PaaS by decoupling Coolify's task management system using Advanced Queue Mode and backing it with a highly resilient, 3-node Redis Sentinel cluster on Cloud servers.

The Core Problem: Standard Queue vs. Advanced Queue

By default, Coolify utilizes a local Redis instance on its primary management node to handle application build queues, deployment states, and webhooks. While sufficient for small teams or staging environments, this monolithic architecture introduces severe limitations under enterprise workloads:

  • Build Queue Bottlenecks: Concurrent application deployments can exhaust the single node's CPU and memory resources, degrading the performance of the Coolify dashboard itself.
  • Single Point of Failure: If the management server goes offline, all active deployment pipelines break, and webhook signals from GitHub or GitLab are permanently lost.
  • Lack of Horizontal Scalability: Worker processes cannot easily be distributed across separate computing nodes to balance heavy CI/CD workloads.

Coolify's Advanced Queue Mode addresses these challenges by allowing the platform to offload its entire queue subsystem to an external, distributed message broker. By pairing this mode with Redis Sentinel, we create a fault-tolerant state machine capable of managing thousands of automated builds without breaking a sweat.

Architectural Overview of the 3-Node Cluster

To implement this architecture safely, we deploy a 3-node cloud topology. This setup ensures that if any single server experiences a hardware or network failure, the remaining nodes can maintain quorum and continue serving traffic without human intervention.

Our 3-node cluster is structured as follows:

  • Node 1 (Coolify Master & Redis Leader): Hosts the main Coolify management dashboard and orchestrates the primary Redis write operations.
  • Node 2 (Redis Follower 1 & Sentinel 1): Maintains a real-time replica of the Redis data and participates in the failover voting quorum.
  • Node 3 (Redis Follower 2 & Sentinel 2): Acts as the second data replica and final quorum voter, preventing split-brain scenarios.
Note: Redis Sentinel requires an odd number of nodes (minimum 3) to properly achieve a majority vote (quorum) when determining whether a master node has failed.

Step-by-Step Implementation Guide

Step 1: Provisioning the Infrastructure

Begin by launching three Linux cloud instances (such as Ubuntu 24.04 LTS) within the same Virtual Private Cloud (VPC) to ensure low-latency private networking. Assign static private IP addresses to each node and configure your firewall rules to allow traffic on the following critical ports:

  • Port 6379: Standard Redis communication.
  • Port 26379: Redis Sentinel monitor communication.
  • Port 80/443: Coolify dashboard access.

Step 2: Configuring the Redis Sentinel Cluster

On all three nodes, install Redis and the Redis-Sentinel package. The configuration must be explicitly adjusted to allow replication across the private network. On the primary node, configure redis.conf to bind to its private IP. On the follower nodes, add the following directive to establish replication:

replicaof  6379

Next, modify the sentinel.conf file across all three instances to point to the designated leader. Define the quorum threshold as 2, meaning at least two Sentinel instances must agree that the leader is down before triggering a failover:

sentinel monitor coolify-redis  6379 2
sentinel down-after-milliseconds coolify-redis 5000
sentinel failover-timeout coolify-redis 10000

Start the Redis and Sentinel services on all machines. You can verify the health of the cluster by running redis-cli -p 26379 sentinel masters, which should display the primary leader and the two connected followers.

Step 3: Activating Coolify Advanced Queue Mode

With your highly available data layer active, log into your primary Coolify instance. Navigate to the Settings panel and locate the Queue Configuration section. Switch the operation type from "Local" to "Advanced Queue".

Instead of entering a single Redis connection string, provide the system with the Sentinel array format:

redis://:26379,:26379,:26379/coolify-redis

Coolify will now utilize the Sentinel service discovery mechanism. When a build job is triggered, Coolify asks the Sentinels for the current IP of the active write leader, ensuring that network operations always land on the correct machine.

Testing Failover and High Availability

An architecture is only as good as its proven resilience. To validate your new setup, simulate a catastrophic server crash by forcing a hard shutdown of Node 1. Within seconds, the Sentinel instances on Node 2 and Node 3 will recognize the loss of heartbeats.

They will hold an automated election, promote one of the followers to the new Redis Leader, and reconfigure the active routing tables. Throughout this entire process, any active Coolify build pipelines will experience a brief, sub-second pause before seamlessly resuming their tasks on the newly elected leader—achieving true zero-downtime failover.

Conclusion and Best Practices

Upgrading your internal PaaS with Coolify's Advanced Queue Mode and Redis Sentinel elevates your self-hosted infrastructure to enterprise standards. It mitigates resource contention, secures build-state integrity, and provides developers with a flawless, cloud-agnostic deployment experience.

As you scale this environment, remember to monitor memory usage trends on your Redis instances, enforce strict internal VPC firewall rules, and regularly run automated backup scripts on your Redis dump files to guarantee long-term data safety.

Building an Enterprise Internal PaaS: Scaling Coolify with Advanced Queue Mode and Redis Sentinel on a 3-Node Cloud Cluster | DPTCloud