high_availability
Description
The high_availability parameter controls whether your Convox rack on Digital Ocean runs in high availability mode with multiple nodes for redundancy.
Default Value
The default value for high_availability is true.
Use Cases
- Production Environments: Keep enabled (default) for production workloads that require fault tolerance and zero-downtime deployments.
- Development/Testing: Set to
falsefor non-production environments to reduce costs by running fewer nodes.
Setting Parameters
The high_availability parameter can only be set when the Rack is installed:
$ convox rack install do <name> high_availability=false
It cannot be changed afterwards. convox rack params set rejects it with param 'high_availability' can only be set during rack installation.
Additional Information
When high_availability is enabled, the rack runs multiple nodes across the cluster to ensure that workloads can be rescheduled if a node fails. Disabling this parameter reduces the rack to a minimal node configuration, which lowers costs but removes redundancy.
| Component | true |
false |
|---|---|---|
| Node pool | 2 to 10 nodes | 1 to 3 nodes |
| Router | 2 to 10 replicas, scaled on CPU | 1 replica |
| Rack API | 2 replicas | 1 replica |
| DNS resolver | 2 replicas | 1 replica |
| Elasticsearch Pods that store the Rack's logs | 2 | 1 |
Each Elasticsearch Pod has its own volume, sized by elasticsearch_disk.
With false, a node failure interrupts the router, Rack API and resolver until replacement pods run. From Rack version 3.26.1, a node drain, such as a Kubernetes version upgrade or convox instances terminate, replaces each of those pods first and stops the old pod afterwards, and the cluster autoscaler does not remove a node while it holds one of them. The replacement needs another node that can run the pod. App Services with one replica are not covered.