-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with Integrating Replication Manager for Automatic Failover in MariaDB Replication on Kubernetes #903
Comments
Why Pod-1 Master but read only ON? |
We only need one replication-manager to monitor them |
For question 2 you will need also need additional pod for proxysql or haproxy or maxscale |
That's our current configuration, but I'm fine with adjusting to a setup where Repmgr works with one master and two replicas. |
Here’s a rewritten version of your question: Wouldn't having only one replication-manager create a single point of failure? For example, if I have a topology with 2 MariaDB pods in Datacenter A and 1 pod in Datacenter B, and my replication-manager is running in Datacenter A:
How can I ensure high availability across datacenters and avoid this single point of failure? |
I’d prefer to go with HAProxy if a load balancer is mandatory. Could you provide a sample HAProxy configuration for this MariaDB topology? Also, just a quick question: If MaxScale can handle automatic failover on its own, why would we need Replication Manager in addition? What are the specific benefits that Replication Manager offers over MaxScale? |
|
here is a sample of stuff we do generate
Please not that if you need k8s api it available for the docker image name replication-manager-pro that i would advice you to use You will need to explicitly set in repman conf specify
ok if onpremise this is the regular way to specify hostname in repman names, but kube api will no be usable for provision services and running jobs just decale db-servers-hosts="db1,db2,db3" here is my last test of kube deployment of a cluster
|
Giving you this for an inspiration of integration as we know our kube deployment lack behind opensvc that we use heavely for docker , oci auto cluster deployment a lot , we don't use secrets for the init containers for example and no api call via ssl |
Can you explain more are they 2 master-master different clusters , we support multi clusters in same repman and can combine it with multi source. We have production deployments using 2 master slave clusters linked on the masters each cluster being on different domain id and we could combine it in both direction we don't really like multi master that writes on all nodes as it lost consistency and bring data divergence DC1(maste-slave) <-> DC2 (maste-slave) <-> DC3 (maste-slave) take care of having row based ,heartbeat on each dc and idempotent a more nice consistent scenario is DC1(maste-slave) DB1 -> DC2 (maste-slave) DB1 & DB2 |
Hello everyone,
I'm seeking some help to integrate Replication Manager (Repmgr) for automatic primary failover in my MariaDB replication setup.
Topology Overview:
read_only
variable set to ON.So, effectively, it's a multi-master and replica topology. We want automatic failover to occur when Pod-0 fails, and the system should promote the latest replica, preferably Pod-1, as the new primary.
Questions regarding Repmgr as an automatic failover solution:
Does Repmgr support this topology?
According to the documentation, Repmgr supports only a 2-node multi-master topology. My case involves 3 pods with 2 multi-masters. Will Repmgr work for this scenario?
Does Repmgr work independently without load balancers like MaxScale/HAProxy/ProxySQL?
If a load balancer is mandatory, what would a sample HAProxy configuration look like for this MariaDB topology?
How many Repmgr pods should I run?
Should I run 3 Repmgr pods, one alongside each MariaDB pod, or is 1 Repmgr pod enough to monitor all 3 MariaDB pods?
Can Repmgr be used as a viable solution for this setup?
I'm curious to know if Repmgr is the best tool for this scenario or if there are other recommended alternatives.
Topology Diagram:
Any insights or suggestions would be highly appreciated. Thanks in advance!
The text was updated successfully, but these errors were encountered: