Done
Details
Assignee
Mykola MarzhanMykola Marzhan(Deactivated)Reporter
Tomislav PlavcicTomislav PlavcicLabels
Time tracking
2h 5m loggedFix versions
Affects versions
Priority
Medium
Details
Details
Assignee
Mykola Marzhan
Mykola Marzhan(Deactivated)Reporter
Tomislav Plavcic
Tomislav PlavcicLabels
Time tracking
2h 5m logged
Fix versions
Affects versions
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created June 30, 2020 at 8:53 AM
Updated March 5, 2024 at 6:13 PM
Resolved August 25, 2020 at 11:42 AM
Sorry about criptic title, but I'll try to explain what we use and what seems problematic to us.
The setup is 3 node PXC 8.0 and proxysql 2.0.12 with pxc kubernetes operator and in proxysql-admin.cnf we set "export WRITE_NODE='cluster1-pxc-0.cluster1-pxc.pxc-demo.svc.cluster.local:3306'" which means if possible we always want node 0 (cluster1-pxc-0) to be the writer.
Hostgroups in our setup are: 11-writer, 12-backup_writer, 10-reader
Starting setup:
Looks ok, node0 is writer.
Then we start cluster upgrade process and upgrade nodes 1 by 1 - node2 first, then node1 and last upgraded is node0 (writer).
Node2 is getting upgraded:
Node0 is writer, so ok.
Node1 is getting upgraded:
Node0 is writer, so ok.
Node0 is getting upgraded and node2 is selected as writer, node1 is online, but not yet re-added to proxysql.
Node1 becomes re-added to proxysql, but the writer is now switched to node1.
Why didn't the writer just stay node2?
At the end, node0 is upgraded and re-added to proxysql and selected as writer:
That last writer switch is ok since we prefer to have node0 as writer, but why the switch before from node2 to node1?