fdb-kubernetes-operator
fdb-kubernetes-operator copied to clipboard
Streamlining three_data_hall Replication Setup Process
What would you like to be added/changed?
Issue Description
When configuring a cluster with three_data_hall replication as described in the documentation, the current process involves several manual steps. This issue proposes enhancements to simplify and automate the setup.
Current Process
- Create the primary fdb cluster in one availability zone, specifying
redundancyMode: triple
. - Wait for the primary fdb cluster to reconcile
- Copy the connection string of the primary cluster.
- Create two secondary fdb clusters in the other two availability zones.
- Update the fdb clusters to use
redundancyMode: three_data_hall
.
Proposed Changes
Option 1: Config Map Enhancement
The operator currently stores the connection string for the primary cluster in a config map named <primary-cluster-name>-config
under the config-map
key. To simplify the process:
- Introduce an option to automatically set seedConnectionString for the secondary clusters using the value from the config map.
This enhancement eliminates the need for step 3, streamlining the setup process by removing the dependency on dynamic values that are not known upfront.
Option 2: Await Reconciliation
Alternatively, consider enhancing the operator to wait for the primary cluster to reconcile before initiating the secondary clusters with the seedConnectionString
. This would make the setup process even more straightforward:
- Create the primary and secondary fdb clusters.
- Wait for all fdb clusters to reconcile.
- Update to
redundancyMode: three_data_hall
.