Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#136 from grafana/allow-to-c…
Browse files Browse the repository at this point in the history
…ustomize-ingester-disk

Allow to customize ingester disk size and class
  • Loading branch information
pracucci authored Jul 11, 2020
2 parents 7546759 + e259402 commit 1a03df7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions operations/mimir/tsdb.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
storage_backend: 'none',
storage_engine: 'tsdb',

// Allow to configure the ingester disk.
cortex_ingester_data_disk_size: '100Gi',
cortex_ingester_data_disk_class: 'fast',

// Allow to configure the store-gateway disk.
cortex_store_gateway_data_disk_size: '50Gi',
cortex_store_gateway_data_disk_class: 'standard',
Expand Down Expand Up @@ -63,9 +67,9 @@
// volume in order to be crash resilient.
local ingester_data_pvc =
pvc.new() +
pvc.mixin.spec.resources.withRequests({ storage: '100Gi' }) +
pvc.mixin.spec.resources.withRequests({ storage: $._config.cortex_ingester_data_disk_size }) +
pvc.mixin.spec.withAccessModes(['ReadWriteOnce']) +
pvc.mixin.spec.withStorageClassName('fast') +
pvc.mixin.spec.withStorageClassName($._config.cortex_ingester_data_disk_class) +
pvc.mixin.metadata.withName('ingester-data'),

ingester_deployment: {},
Expand Down

0 comments on commit 1a03df7

Please sign in to comment.