Skip to content
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

Use SELECT @@global.read_only for Monitor #1621

Closed
renecannao opened this issue Jul 26, 2018 · 1 comment
Closed

Use SELECT @@global.read_only for Monitor #1621

renecannao opened this issue Jul 26, 2018 · 1 comment
Assignees
Milestone

Comments

@renecannao
Copy link
Contributor

On a large system with around 1000 ProxySQL instances it was detected that SHOW GLOBAL VARIABLES LIKE 'read_only' could cause serious contention/locking issues.
The average execution time to run SHOW GLOBAL VARIABLES LIKE 'read_only' is 2ms, but could spike to 300ms at high concurrency.
On the other hand, the average execution time for SELECT @@global.read_only is around 0.05ms (40 times faster than SHOW GLOBAL.

@renecannao
Copy link
Contributor Author

Applied in 1.4.10 and 2.0.0
Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant