thanos-io/thanos · error
create chunk pool
Error message
create chunk pool
What it means
Wraps the creation of the chunk pool that buffers chunk bytes served by the Thanos store gateway. It fires when the pool cannot be allocated (invalid size parameters derived from the rate-limit flags or exhausted memory), so no query can be served.
Solutions
- Check chunk pool size flags (max chunk pool bytes)
- Ensure pool sizes are non-negative and sensible
- Review memory limits of the host
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at cmd/thanos/store.go:420 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of thanos-io/thanos@35b8b99117 (2026-09-07).
Data as JSON: /api/errors/9b4525f765c1eb22.
Report an issue: GitHub.
Appendix: source
Thrown at cmd/thanos/store.go:420
block.NewLabelShardedMetaFilter(relabelConfig),
block.NewConsistencyDelayMetaFilter(logger, time.Duration(conf.consistencyDelay), extprom.WrapRegistererWithPrefix("thanos_", reg)),
ignoreDeletionMarkFilter,
block.NewDeduplicateFilter(conf.blockMetaFetchConcurrency),
})
if err != nil {
return errors.Wrap(err, "meta fetcher")
}
// Limit the concurrency on queries against the Thanos store.
if conf.maxConcurrency < 0 {
return errors.Errorf("max concurrency value cannot be lower than 0 (got %v)", conf.maxConcurrency)
}
queriesGate := gate.New(extprom.WrapRegistererWithPrefix("thanos_bucket_store_series_", reg), int(conf.maxConcurrency), gate.Queries)
chunkPool, err := store.NewDefaultChunkBytesPool(uint64(conf.chunkPoolSize))
if err != nil {
return errors.Wrap(err, "create chunk pool")
}
options := []store.BucketStoreOption{
store.WithLogger(logger),
store.WithRequestLoggerFunc(func(ctx context.Context, logger log.Logger) log.Logger {
reqID, ok := middleware.RequestIDFromContext(ctx)
if ok {
return log.With(logger, "request-id", reqID)
}
return logger
}),
store.WithRegistry(reg),
store.WithIndexCache(indexCache),
store.WithMatchersCache(matchersCache),
store.WithQueryGate(queriesGate),
store.WithChunkPool(chunkPool),
store.WithFilterConfig(conf.filterConf),
store.WithChunkHashCalculation(true),View on GitHub (pinned to 35b8b99117)