MCPcopy
hub / github.com/prometheus/prometheus / DefaultHeadOptions

Function DefaultHeadOptions

tsdb/head.go:234–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232)
233
234func DefaultHeadOptions() *HeadOptions {
235 ho := &HeadOptions{
236 ChunkRange: DefaultBlockDuration,
237 ChunkDirRoot: "",
238 ChunkPool: chunkenc.NewPool(),
239 ChunkWriteBufferSize: chunks.DefaultWriteBufferSize,
240 ChunkWriteQueueSize: chunks.DefaultWriteQueueSize,
241 SamplesPerChunk: DefaultSamplesPerChunk,
242 StripeSize: DefaultStripeSize,
243 SeriesCallback: &noopSeriesLifecycleCallback{},
244 IsolationDisabled: defaultIsolationDisabled,
245 WALReplayConcurrency: defaultWALReplayConcurrency,
246 }
247 ho.OutOfOrderCapMax.Store(DefaultOutOfOrderCapMax)
248 ho.FloatChunkEncoding.Store(uint32(chunkenc.EncXOR))
249 return ho
250}
251
252// UseXOR2FloatEncoding reports whether new float chunks should use XOR2 encoding.
253func (o *HeadOptions) UseXOR2FloatEncoding() bool {

Callers 15

StatsMethod · 0.92
TestPostingsForMatchersFunction · 0.85
TestHeadChunkReaderCacheFunction · 0.85
initHeadMethod · 0.85
FlushWALMethod · 0.85
loadDataAsQueryableMethod · 0.85

Calls 2

NewPoolFunction · 0.92
StoreMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…