()
| 232 | ) |
| 233 | |
| 234 | func 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. |
| 253 | func (o *HeadOptions) UseXOR2FloatEncoding() bool { |
searching dependent graphs…