-
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
When the slave sets maintenance, there is a problem with the status change of proxysql. #752
Comments
Hi peterpan104 We have to think on it a lot, the solution was never made to allow to put master in maintenance it is just made to avoid that situation to do that and to to preserve the writer traffic . A maintenance would be done on slave one by one , once all slaves have finish maintenance one is promote as master and the old master now a slave or a broken slave will receive the maintenance and get reintroduce as the master |
Sorry please correct |
Is this scripting on your side or is it reproductible manually by using the same steps from the gui ? |
@svaroqui Under normal conditions, all slaves will not be maintenance. thanks for your reply. |
Do you enable proxysql bootstrap? |
HI @caffeinated92 |
Added bug fix in v2.3.44 but it will need bootstrap to ON. Since we don't want the script to add master in reader list except with acknowledgement |
Hi @caffeinated92 |
Hi we are investigating and found some issues in the new logic that maintenance state could differ from proxy to proxy |
This is the state when repman parameters, repman and proxysql are first start:
I set 172.24.44.182 as maintenance,
the status of repman and proxysql is as follows:
Then set 172.24.47.188 as maintenance,
the status of repman and proxysql is as follows:
Now set 172.24.47.188 as online,
the status of repman and proxysql is as follows:
then set 172.24.43.182 as online,
the status of repman and proxysql is as follows:
proxy-servers-read-on-master-no-slave seems to have no effect, but proxysql status is normal
Now I trigger the switchover,
the status of repman and proxysql is as follows:
I set 172.24.43.182 as maintenance,
the status of repman and proxysql is as follows:
Then set 172.24.47.188 maintenance,
the status of repman and proxysql is as follows:
You can see that 172.24.43.182 is online in the proxysql status!
Now I restore the status to after switchover:
I set 172.24.47.188 as maintenance,
the status of repman and proxysql is as follows:
Then set 172.24.43.183 as maintenance,
the status of repman and proxysql is as follows:
At this time, proxysql status is still normal.
Now set 172.24.47.188 as online,
the status of repman and proxysql is as follows:
You can see that 172.24.43.182 is online in the proxysql status!
I tried setting
proxysql-bootstrap=true
,It just allows
proxy-servers-read-on-master-no-slave
to work,However, the status of proxysql will still be the same as the above test. Can this problem be fixed?
The text was updated successfully, but these errors were encountered: