-
Notifications
You must be signed in to change notification settings - Fork 982
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
Remove shunned servers #1416
Comments
Hi @robellison The "SHUNNED" status is a temporary status, ProxySQL keeps checking if the node is back online by design in order to send connections to the server once it is available. This differs from the various OFFLINE statuses. It is strongly recommended to In any case, regarding the query you are trying to execute, please keep in mind that although ProxySQL Admin supports the MySQL Protocol the backend is SQLite3 and you can also use the
We'll look at ways to improve this behaviour. Thanks! INTERNAL NOTE: Left issue open and added the enhancement label to look at better ways of handling this scenario. |
i've got a fairly dynamic environment where servers can come and go with different IP addresses
at the moment when a server on a particular IP is removed from the back-end cluster, it remains in the proxySQL mysql_servers list (obviously)
the problem is that even though the servers are shunned, periodically the come back online which causes issues - as they are then used for connections, even though there is no server there.
i need to either fix this behaviour so ProxySQL checks that the server is actually there before marking it back online or remove the shunned servers
on the latter i have this query, but for some reason it doesn't work
DELETE mysql_servers
FROM mysql_servers
LEFT JOIN
stats.stats_mysql_connection_pool
on mysql_servers.hostname = stats.stats_mysql_connection_pool.srv_host
where stats.stats_mysql_connection_pool.status = 'SHUNNED';
any help appreciated
The text was updated successfully, but these errors were encountered: