cortex-jsonnet icon indicating copy to clipboard operation
cortex-jsonnet copied to clipboard

Make ingester storage class configurable

Open fculpo opened this issue 3 years ago • 3 comments

Hello,

The storage class for ingester is hardcoded to 'fast'

Could we make this configurable ?

fculpo avatar Aug 06 '21 08:08 fculpo

When you use the blocks storage it's already configurable via cortex_ingester_data_disk_class (ingester pvc is overridden in tsdb.libsonnet). If you're using the chunks storage, then yes, you can open a PR to use cortex_ingester_data_disk_class in ingester.libsonnet too.

pracucci avatar Aug 06 '21 09:08 pracucci

Sorry but I don't see where/how to pass this value. The field does not exist in config.libsonnet and I don't see where tsdb.libsonnet is called from cortex.libsonnet

fculpo avatar Aug 06 '21 13:08 fculpo

The field does not exist in config.libsonnet and I don't see where tsdb.libsonnet is called from cortex.libsonnet

If you run the blocks storage, then you have to import tsdb.libsonnet explicitly after cortex.libsonnet. If you don't do it, then I guess you're running the (old and deprecated) chunks storage, so I would suggest you the following:

If you're using the chunks storage, then yes, you can open a PR to use cortex_ingester_data_disk_class in ingester.libsonnet too.

You can define cortex_ingester_data_disk_class in config.libsonnet.

pracucci avatar Aug 17 '21 09:08 pracucci