-
Notifications
You must be signed in to change notification settings - Fork 750
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
Slow scrape time and consuming lots of cpu and memory when there are lots of databases in MySQL. #824
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Host operating system: output of
uname -a
Linux mysql-www-xxxxxxx.yyyy.zzzz 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
mysqld_exporter version: output of
mysqld_exporter --version
MySQL server version
mysql Ver 8.0.31-23 for Linux on x86_64 (Percona Server (GPL), Release 23, Revision 71449379)
mysqld_exporter command line flags
Also removed the following collects to see if it makes a difference:
This had the same results as with them enabled. So didn't made a difference
What did you do that produced an error?
A stress-test is done on the mysql-database cluster which created about 186 databases with each 147 tables in it.
What did you expect to see?
mysqld_exporter just using limited amount of cpu and memory and scrape time is within a second
What did you see instead?
mysqld_exporter was just running but was consuming more and more memory and eventually triggered the OOM-killer.
mysqld_exporter had spikes of using about 150% cpu but was using at least 50% CPU. Memory usage is about 2.5 - 3.5 GB and growing.
The scrape time is more than 9 seconds and often more than 10 seconds (which is the timeout setting in Prometheus)
The text was updated successfully, but these errors were encountered: