You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Later enforce the MySQL server to report a higher replication lag than the configure max_replication_lag configured for ProxySQL,
server status should change to:
While this is status is taking place, enforce a delay in the shunned replica, that is higher than the configured: mysql-monitor_replication_lag_timeout. The following events can be appreciated in ProxySQL log:
2021-03-12 16:30:27 ProxySQL_Admin.cpp:2330:admin_handler_command_load_or_save(): [INFO] Received load mysql variables to runtime command
2021-03-12 16:30:28 MySQL_HostGroups_Manager.cpp:3331:replication_lag_action(): [WARNING] Shunning server 127.0.0.1:13307 from HG 1 with replication lag of 10 second, count number: '1'
2021-03-12 16:30:32 ProxySQL_Admin.cpp:1448:admin_handler_command_set(): [INFO] Received command set mysql-monitor_replication_lag_timeout=200
2021-03-12 16:30:33 ProxySQL_Admin.cpp:2330:admin_handler_command_load_or_save(): [INFO] Received load mysql variables to runtime command
2021-03-12 16:30:34 MySQL_HostGroups_Manager.cpp:3355:replication_lag_action(): [WARNING] Re-enabling server 127.0.0.1:13307 from HG 1 with replication lag of -2 second
The previous shunned server should now be back online due to the timeout of the mysql-monitor_replication_lag_timeout.
The full ProxySQL error log (default location: /var/lib/proxysql/proxysql.log)
If a server is shunned due to replication lag, this is: SHUNNED_REPLICATION_LAG. It can get re-enabled even due to replication-lag checks timing out.
ProxySQL version
v2.1.1
OS version
For reproducing the issue it's enough configuring MySQL servers to a slow max_replication_lag:
Later enforce the MySQL server to report a higher replication lag than the configure
max_replication_lag
configured for ProxySQL,server status should change to:
While this is status is taking place, enforce a delay in the shunned replica, that is higher than the configured:
mysql-monitor_replication_lag_timeout
. The following events can be appreciated in ProxySQL log:The previous shunned server should now be back online due to the timeout of the
mysql-monitor_replication_lag_timeout
./var/lib/proxysql/proxysql.log
)proxysql_replication_lag_timeout.log
The text was updated successfully, but these errors were encountered: