-
Notifications
You must be signed in to change notification settings - Fork 6
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
Promdump OOMs when using Large date range #14
Comments
Can you use a smaller date/time range? promdump doesn't impose any limits on time range - it boils down to your node resource. The log shows that promdump was able to finish parsing the blocks, so it's probably happening while promdump is trying to compress and write the results to stdout. It's hard to tell whether tweaking the compression code will help with your case, without knowing how much data you are dealing with. |
Yes, It works with a smaller time range. Is there any option to use promdump on larger time range/dataset on systems with limited resources. (For example, by splitting the output into small chunks based on a runtime option and then concatenate them)? |
Not at the moment. It's no different from using a smaller time range though. The data blocks are partitioned by time range and there isn't a way to slice up a data block into smaller units, and then merge them back together without corrupting it. It's also not possible to run promdump on a remote node because the Prometheus TSDB is only accessible locally. |
We can try to paginate the data blocks while writing to stdout, but if each data block is big in relative to your node's resource, you can still run into OOM issue. |
Can we get pagination based on a specific time window? like |
You can't. If you ask the TSDB for time series data between 2022-09-24 00:00:00 and 2022-09-24 00:01:00, it will still return the entire data block that contains the data. If that single block is huge, you will still have OOM issue. |
@ihcsim |
Is there a limit on the number of hours/days we should use? It OOMs when we use 2 days or more, for example:
We See its stuck at this stage and then it gets killed:
/var/log/messages shows promdump is getting killed due to OOM:
Any workarounds we can use? other than increasing the memory?
The text was updated successfully, but these errors were encountered: