Enable Master Aggregator High Availability
To enable high availability for the Master Aggregator (MA HA), set masterAggregatorSpec. to the desired number of Master Aggregator replicas in the sdb-cluster. cluster custom resource (CR) file.
spec:masterAggregatorSpec:count: 3
SingleStore recommends an odd number of Master Aggregator replicas.count ≥ 2 can form a quorum (quorum size is floor(n/2) + 1), but even counts do not improve failure tolerance over the next-lower odd count.
For improved fault tolerance, configure pod scheduling so that Master Aggregator pods are not scheduled on the same host.
After you apply the cluster custom resource, verify that MA HA is enabled:
SHOW VARIABLES LIKE 'consensus_enabled';SHOW AGGREGATORS EXTENDED;
The following are the expected results:
-
consensus_isenabled ON. -
One Master Aggregator is the leader.
-
The remaining Master Aggregators are voting members.
With MA HA enabled, if the current leader fails, another voting Master Aggregator replica is automatically promoted to leader.
Last modified: