Description
Is your feature request related to a problem? Please describe.
Today, we hardcode to enable all optimizers in the Thanos engine https://github.com/cortexproject/cortex/blob/master/pkg/querier/engine_factory.go#L29. However, all optimizers include PropagateMatchersOptimizer
which is not a default optimizer.
It might be not ideal to hardcode to enable all optimizers as we may not want to turn off some optimizers for certain usecases.
Describe the solution you'd like
Make thanos engine optimizers configurable. It can be a list of optimizers to enable. We can have special values such as all
or default
which enables pre-setoptimizers.
This can also be used to enable more optimizers maybe specific to Cortex in the future.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.