mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Adjust samplesPerChunk from 120 to 220
Signed-off-by: Justin Lei <justin.lei@grafana.com>
This commit is contained in:
parent
8dba9163f1
commit
79db04eb12
|
@ -1324,10 +1324,7 @@ func (s *memSeries) appendFloatHistogram(t int64, fh *histogram.FloatHistogram,
|
||||||
func (s *memSeries) appendPreprocessor(
|
func (s *memSeries) appendPreprocessor(
|
||||||
t int64, e chunkenc.Encoding, chunkDiskMapper *chunks.ChunkDiskMapper, chunkRange int64,
|
t int64, e chunkenc.Encoding, chunkDiskMapper *chunks.ChunkDiskMapper, chunkRange int64,
|
||||||
) (c *memChunk, sampleInOrder, chunkCreated bool) {
|
) (c *memChunk, sampleInOrder, chunkCreated bool) {
|
||||||
// Based on Gorilla white papers this offers near-optimal compression ratio
|
const samplesPerChunk = 220
|
||||||
// so anything bigger that this has diminishing returns and increases
|
|
||||||
// the time range within which we have to decompress all samples.
|
|
||||||
const samplesPerChunk = 120
|
|
||||||
|
|
||||||
c = s.head()
|
c = s.head()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue