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 upv2.2.1 compaction on same blocks over and over again #4089
Comments
This comment has been minimized.
This comment has been minimized.
|
I seem to recall that changing the block duration for a Prometheus instance with existing tsdb data isn't supported. Ping @gouthamve @fabxc. |
gouthamve
added
the
component/local storage
label
May 9, 2018
brian-brazil
added
the
kind/bug
label
Jun 13, 2018
This comment has been minimized.
This comment has been minimized.
|
Yeah, that's not a setting you should be changing. Does this happen with the default settings? |
This comment has been minimized.
This comment has been minimized.
|
Many TSDB bugs have been fixed between v2.2.1 and now. I didn't find any other report of a similar issue. I'm closing it for now. Feel free to reopen if you're still having the problem with Prometheus v2.3.2. |
simonpasquier
closed this
Aug 7, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
baozuo commentedApr 16, 2018
•
edited
What did you do?
--storage.tsdb.min-block-duration=30mWhat did you expect to see?
I expect the storage usage to be stable as in v2.1.0.
What did you see instead? Under which circumstances?
The storage usage keeps growing, due to the observed behavior that it keeps compacting the same blocks over and over again.
Environment
the official prometheus image running in k8s.
Linux 4.4.102-k8s x86_64Alertmanager version:
N/A
Prometheus configuration file:
N/A
Alertmanager configuration file:
N/A
Logs:
The meta file information of latest blocks:
the target compacted block (
mint=1523656800000 maxt=1523664000000) spans across the latest 3 blocks, and the 3 blocks are not cleaned up after the compaction is done.The issue disappears when we bring back the custom config
--storage.tsdb.min-block-duration=30m