From d101dbf42831383235bf87a94e2d35ddafc0090a Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Fri, 15 Jan 2021 14:59:57 -0500 Subject: [PATCH] moves boltdb flags to config file --- .../ksonnet/loki/boltdb_shipper.libsonnet | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/production/ksonnet/loki/boltdb_shipper.libsonnet b/production/ksonnet/loki/boltdb_shipper.libsonnet index a257230d845ea..4c9955b4d1a93 100644 --- a/production/ksonnet/loki/boltdb_shipper.libsonnet +++ b/production/ksonnet/loki/boltdb_shipper.libsonnet @@ -22,29 +22,13 @@ storage_config+: { boltdb_shipper: { shared_store: $._config.boltdb_shipper_shared_store, + active_index_directory: '/data/index', + cache_location: '/data/boltdb-cache', }, }, } else {}, }, - ingester_args+:: if $._config.using_boltdb_shipper then { - // Persist index in pvc - 'boltdb.shipper.active-index-directory': '/data/index', - - // Use PVC for caching - 'boltdb.shipper.cache-location': '/data/boltdb-cache', - } else {}, - - querier_args+:: if $._config.using_boltdb_shipper then { - // Use PVC for caching - 'boltdb.shipper.cache-location': '/data/boltdb-cache', - } else {}, - - ruler_args+:: if $._config.using_boltdb_shipper then { - // Use PVC for caching - 'boltdb.shipper.cache-location': '/data/boltdb-cache', - } else {}, - // we don't dedupe index writes when using boltdb-shipper so don't deploy a cache for it. memcached_index_writes: if $._config.using_boltdb_shipper then {} else super.memcached_index_writes,