fdb-kubernetes-operator icon indicating copy to clipboard operation
fdb-kubernetes-operator copied to clipboard

Streamlining three_data_hall Replication Setup Process

Open simenl opened this issue 1 year ago • 1 comments

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

  1. Create the primary fdb cluster in one availability zone, specifying redundancyMode: triple.
  2. Wait for the primary fdb cluster to reconcile
  3. Copy the connection string of the primary cluster.
  4. Create two secondary fdb clusters in the other two availability zones.
  5. 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:

  1. Create the primary and secondary fdb clusters.
  2. Wait for all fdb clusters to reconcile.
  3. Update to redundancyMode: three_data_hall.

simenl avatar Nov 18 '23 21:11 simenl