Conversation
Add the per data center DC-DR view to MariaDB status, mirroring the Postgres shape. A distributed MariaDB is expanded into one self contained Galera cluster per Member DC; the cross-DC active DC decision is owned by the dr-controlplane primary-DC Lease and reflected here on the single Database object. MariaDBDisasterRecoveryStatus carries the active DC, the DR phase, and a per-DC view (role, representative node, writable, cross-DC async lag, health). MariaDBDCStatus is one DC's local view. Signed-off-by: Tamal Saha <tamal@appscode.com>
A distributed DC-DR MariaDB has one intra-DC Galera quorum per data center, each scaled independently. Add MariaDBHorizontalScalingDC and a dataCenters list on MariaDBHorizontalScalingSpec so an ops request can set per data center local node counts instead of the single cluster wide member count. Regenerate the ops CRD. Signed-off-by: Tamal Saha <tamal@appscode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapts the Postgres DC-DR API work to MariaDB (a quorum based, multi-primary Galera engine). A distributed MariaDB is expanded by the operator into one self contained Galera cluster per Member data center; the cross-DC active DC decision is owned by the dr-controlplane primary-DC Lease and reflected on the single Database object.
Changes
apis/kubedb/v1/mariadb_types.go: addstatus.disasterRecovery(MariaDBDisasterRecoveryStatus,MariaDBDCStatus,MariaDBDRPhase{Steady,FailingOver,FailingBack,Degraded}). Per-DC view carries role, representative Galera node, writable, cross-DC async lag bytes, and health.apis/ops/v1alpha1/mariadb_ops_types.go: addMariaDBHorizontalScalingDCand adataCenterslist onMariaDBHorizontalScalingSpecso an ops request scales each DC's intra-DC Galera quorum independently.Mirrors the merged/in-flight Postgres DC-DR types. Dependent repos (mariadb operator, mariadb-coordinator) bump to this once released.