pyroscope
pyroscope copied to clipboard
Implement store-gateway block closing
When serving queries from bucket store-gateways open blocks, but they are never closed:
https://github.com/grafana/pyroscope/blob/0f7587769d9aee15579ea4d40ff19ca634f15b2c/pkg/storegateway/query.go#L199
We should implement reference counting and also define a block idle time.:
https://github.com/grafana/pyroscope/blob/0f7587769d9aee15579ea4d40ff19ca634f15b2c/pkg/phlaredb/block_querier.go#L2083-L2094
Reported via the community slack in thread: