mirror of https://github.com/sysown/proxysql
The default value (1) syncs both configured AND runtime mysql_servers,
including changes made by the monitor (read_only checks moving servers
between writer/reader hostgroups). This caused circular sync: a
cluster node's monitor modified servers, creating a newer epoch, and
the primary synced this back — overwriting its correct config and
saving the corrupted version to disk.
With auto_select (3), the algorithm chooses mysql_servers_v2 when
the monitor is enabled, which only syncs user-configured changes
and ignores monitor-triggered runtime modifications.
Evidence: node 6042's monitor removed MariaDB servers from hostgroup
1701 ("Setting status OFFLINE HARD"), creating checksum 0x7C0A67D5
with epoch 1774288555. Primary (epoch 1774288549) synced from node
6042 and saved to disk, losing hostgroup 1300 permanently.
Fixes #5540.
v3.0-ci260323
parent
fb9ff4476e
commit
3c4ebf0da7
Loading…
Reference in new issue