mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 16:43:21 +00:00
8ef7dfdeeb
Add a chunk size limit in bytes This creates a hard cap for XOR chunks of 1024 bytes. The limit for histogram chunk is also 1024 bytes, but it is a soft limit as a histogram has a dynamic size, and even a single one could be larger than 1024 bytes. This also avoids cutting new histogram chunks if the existing chunk has fewer than 10 histograms yet. In that way, we are accepting "jumbo chunks" in order to have at least 10 histograms in a chunk, allowing compression to kick in. Signed-off-by: Justin Lei <justin.lei@grafana.com> |
||
---|---|---|
.. | ||
dir_locker_test.go | ||
dir_locker_testutil.go | ||
dir_locker.go | ||
histogram.go |