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 upThe document about memory usage need be clarify #2187
Comments
This comment has been minimized.
This comment has been minimized.
|
I can search many issues reported by user, will caused by the lack of clarify document . |
This comment has been minimized.
This comment has been minimized.
|
We tried to make it as clear as possible. Most user issues were reported by users who weren't aware of that part of documentation at all. In any case, if you have suggestion to clarify the documentation, PRs are welcome. |
beorn7
added
the
kind/question
label
Nov 14, 2016
This comment has been minimized.
This comment has been minimized.
|
For 512MB vm, what's the best value of the storage.local.memory-chunks ? |
This comment has been minimized.
This comment has been minimized.
|
The doc says "As a rule of thumb, you should have at least three times more RAM available than needed by the memory chunks alone." So that's at most 512MiB/1kiB/3 = 174762 memory chunks at most. (Talking to people working in tech, I'd assume I don't have to do the math for various example values.) The doc also says "Also, your server is doing many more things than just storing samples. The actual overhead depends on your usage pattern. In extreme cases, Prometheus has to keep more chunks in memory than configured because all those chunks are in use at the same time. You have to experiment a bit." In short: There is no single best value. It's plainly impossible to tell users "set this flag to that value, and everything is fine". See also #455, which will, once solved, get things closer to "use that much RAM, and adjust everything else accordingly". |
This comment has been minimized.
This comment has been minimized.
|
Please send your questions to the https://groups.google.com/forum/#!forum/prometheus-users mailing list. |
grobie
closed this
Mar 5, 2017
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. |
netroby commentedNov 14, 2016
•
edited
The document : https://prometheus.io/docs/operating/storage/#memory-usage
I have a dev vm, it only have 512MB memory (Most like the common cloud hosting provided us like DigitalOcean, Vultr or others ). How to set this flag?
And if i want to deploy premetheus to production server, which may have 4GB or 8GB or 16GB memory.
How to set the flags?
Would you please gave a real example to show us ? We have not experience on how to configure the flags. and do not quite understand how the flag will affect the result memory usage.
for example. may we configure
The default unit was byte or kilobyte?