Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus Memory Issues #2483
Comments
This comment has been minimized.
This comment has been minimized.
|
Your flags look good. That's pretty much the configuration I'd use myself. Not that the suggested 3x factor is a lower bound. (We have some servers at SoundCloud with a lot of targets, series, and very involved Kubernetes Service Discovery and relabeling, where we need to apply a 10x factor!) Sadly, memory usage in a Go program is really hard to predict/control. There are a million things that require more or less memory at different times. But I'll give you three lights at the end of the tunnel:
If you have more questions, I recommend to discuss them on the prometheus-users mailing list. |
beorn7
closed this
Mar 8, 2017
This comment has been minimized.
This comment has been minimized.
|
that's awesome to hear! Looking forward to the next release. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lswith commentedMar 8, 2017
Prometheus has been running in production for about 4 months now. It has been working great however trying to configure the memory usage is still a problem.
Currently our server has 64Gb of RAM available. We have set our memory-chunks to 10485760 which is well below the 3x threshold suggested.
Currently the memory usage is something along these lines:
https://snapshot.raintank.io/dashboard/snapshot/GD6AZ2rTkuMttT2JjOWezEkz9ABoh53c
Basically the memory usage hovers around 30-50Gb then somehow jumps up to max RAM and CPU goes up.
I thought it might be querying but it seems that the query rate hasn't changed. The amount of Pins and Unpins however does jump.
Environment
Linux 4.4.0-38-generic x86_64