high_availability
Description
The high_availability parameter determines whether to create a high availability (HA) cluster. Setting this parameter to false will create a cluster with less redundant resources, which can help with cost optimization.
Default Value
The default value for high_availability is true.
Use Cases
- Cost Optimization: Reduce infrastructure costs by creating a less redundant cluster.
- Resource Management: Allocate fewer resources for environments where high availability is not critical.
Setting Parameters
The high_availability parameter can only be set when the Rack is installed:
$ convox rack install aws <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
High availability clusters provide increased resilience and uptime by using redundant resources. Disabling high availability can significantly reduce costs, making it suitable for non-production environments, development clusters, or any scenario where uptime is not critical.
| Component | true |
false |
|---|---|---|
| System node groups | 3, one per availability zone | 1 |
| Router | 2 to 10 replicas, scaled on CPU. From Rack version 3.26.1, spread across availability zones |
1 replica |
Internal router (internal_router=true) |
2 to 10 replicas, scaled on CPU. From Rack version 3.26.1, spread across availability zones |
1 replica |
| Rack API | 2 replicas | 1 replica |
| DNS resolver | 2 replicas | 1 replica |
The router's zone spread is a preference applied when a pod is scheduled, not a guarantee. See Ingress Router.
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 does not:
Event on a false Rack |
From 3.26.1 |
|---|---|
| a node group roll, such as a Kubernetes version update or a node image update | each router, internal router, API and resolver pod is replaced first, and the old pod stops afterwards |
| a cluster autoscaler scale-down, with Karpenter off | the autoscaler does not remove a node while it holds the router, internal router, API or resolver pod |
convox instances terminate on the node that holds one of those pods |
the replacement pod starts on another node before the old one is evicted. See Instance |
The replacement needs another node that can run the pod, and the Rack starts it only for a node older than five minutes. App Services with one replica are not covered: a node roll evicts their pod. A Service needs two or more replicas to stay up through a node roll.
Before setting high_availability to false, consider the potential impact on service reliability and downtime.
Maintaining high availability is crucial for production environments that require continuous operation and minimal downtime.