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
switchover with children cluster will set the readonly flag on children cluster primary server #565
Comments
Perhaps on : utils/dbhelper/dbhelper.go :
|
Can you explain your topology? time="2024-04-24 07:34:50" level=info msg="Server EU-01 disable read only as last non slave" cluster=cluster_EU_masterslave |
If you can, please explain your topology and your expected behavior. |
FR Cluster is the "First cluster" in the picture; During a switch over on FR cluster (which is one of the replication source for EU) Replication manager will set the read_only flag on EU Primary cluster. But EU Primary NEED to be read-write all the time. After the switchover; Replication manager (for EU cluster) see that EU-01 is not RW; and put it again as RW. But we have EU-01 forced (by mistake) as read_only for 2 seconds. |
can you show the GUI of the topology? what topology it's detected as? if it was detected as master-slave, then it will try to force EU to read only. |
EU1 is detected as secondary, but ignored one. It is not into the configuration of FR1; but all the replication flow are named; and EU1 is a replica of FR cluster (flow named FR) so detected by Replication Manager as secondary ignored. Reconfigure EU1 to be replica of FR2 when switchover is the normal way (child cluster SHOULD be a replica of Primary FR). FR Cluster is the cluster on the top of this picture; |
Please show the screenshot of the dashboard of replication manager. |
It's not easy, names are rewritten for obfuscation reasons, a screenshot would not be obfuscated :'( |
We will check on this. Thank you for your patience. |
We have 2 different clusters.
First cluster 'French' (FR1 & FR2) is a primary/replica cluster.
Second cluster 'Europe' (EU1 & EU2) is also a primary/replica cluster; but the 'Europe' primary is also a replica from 'French' only for 'French' subset of data.
When we want to switchover French cluster from primary to secondary; (From FR1 to FR2 for exemple) - in order to perform a work into FR1 - the switch over will put the flag
read_only
into EU1.replication manager logs
I can't see any "putting read_only flag"
proxysql logs
The flag will be removed few seconds later; but during this time slot;
ProxySQL
see thisread_only
flag; and move the EU1 Server asnon-writer
generating issues on many application who try to write on it.This issue (and putting RO/removing it quickly) will generate a race condition on old proxysql (2.0) - breaking the state machine - and forcing to restart the proxysql engine.
The text was updated successfully, but these errors were encountered: