Adjust samplesPerChunk from 120 to 220

Signed-off-by: Justin Lei <justin.lei@grafana.com>
pull/12055/head
Justin Lei 3 years ago
parent 8dba9163f1
commit 79db04eb12
  1. 5
      tsdb/head_append.go

@ -1324,10 +1324,7 @@ func (s *memSeries) appendFloatHistogram(t int64, fh *histogram.FloatHistogram,
func (s *memSeries) appendPreprocessor(
t int64, e chunkenc.Encoding, chunkDiskMapper *chunks.ChunkDiskMapper, chunkRange int64,
) (c *memChunk, sampleInOrder, chunkCreated bool) {
// Based on Gorilla white papers this offers near-optimal compression ratio
// so anything bigger that this has diminishing returns and increases
// the time range within which we have to decompress all samples.
const samplesPerChunk = 120
const samplesPerChunk = 220
c = s.head()

Loading…
Cancel
Save