Skip to content

Commit

Permalink
moves boltdb flags to config file (#3180)
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-d authored Jan 15, 2021
1 parent 5b6d64c commit c175ad0
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions production/ksonnet/loki/boltdb_shipper.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit c175ad0

Please sign in to comment.