prometheus/tsdb/agent
Justin Lei 8ef7dfdeeb
Add a chunk size limit in bytes (#12054)
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>
2023-08-24 15:21:17 +02:00
..
db.go Use zeropool when replaying agent's DB WAL (#12651) 2023-08-04 10:39:55 +02:00
db_test.go Add a chunk size limit in bytes (#12054) 2023-08-24 15:21:17 +02:00
series.go tsdb/agent: Ignore duplicate exemplars (#10595) 2022-04-18 11:41:04 -04:00
series_test.go tsdb/agent: Fix deadlock from simultaneous GC and write (#10166) 2022-01-19 20:23:06 +05:30