Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mimir add compactor dir #117

Merged
merged 13 commits into from
Jul 29, 2024
32 changes: 26 additions & 6 deletions deployment/mimir/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,27 @@ spec:
containers:
- args:
# - '-config.file=/conf/mimir.yaml'
- '-activity-tracker.filepath=/data/metrics-activity.log'
- '-auth.multitenancy-enabled=false'
- '-auth.no-auth-tenant=anonymous'
- '-blocks-storage.bucket-store.sync-dir=/tsdb-sync/'
- '-blocks-storage.storage-prefix=blocks'
- '-blocks-storage.tsdb.dir=/tsdb/'
- '-blocks-storage.tsdb.wal-compression-enabled=true'
- '-common.storage.backend=filesystem'
- '-common.storage.filesystem.dir=/data'
- '-compactor.blocks-retention-period=15d'
- '-compactor.cleanup-interval=1h'
- '-compactor.data-dir=/compactor/'
- '-compactor.deletion-delay=1h'
- '-distributor.ha-tracker.enable-for-all-users=true'
- '-ingester.ring.replication-factor=1'
- '-log.level=debug'
- '-querier.cardinality-analysis-enabled=true'
- '-ruler-storage.backend=local'
- '-ruler-storage.local.directory=/rules'
- '-blocks-storage.tsdb.wal-compression-enabled=true'
- '-blocks-storage.tsdb.dir=/tsdb/'
- '-blocks-storage.bucket-store.sync-dir=/tsdb-sync/'
- '-compactor.blocks-retention-period=15d'
- '-activity-tracker.filepath=/data/metrics-activity.log'
- '-ruler.rule-path=/ruler'
- '-store-gateway.sharding-ring.replication-factor=1'
- '-querier.cardinality-analysis-enabled=true'
image: grafana/mimir:2.13.0
imagePullPolicy: IfNotPresent
name: mimir
Expand All @@ -59,10 +69,14 @@ spec:
mountPath: /data
- name: rules
mountPath: /rules
- name: ruler
mountPath: /ruler
- name: tsdb
mountPath: /tsdb
- name: tsdb-sync
mountPath: /tsdb-sync
- name: compactor
mountPath: /compactor
securityContext:
allowPrivilegeEscalation: false
privileged: false
Expand All @@ -79,12 +93,18 @@ spec:
- name: rules
emptyDir:
sizeLimit: "1Gi"
- name: ruler
emptyDir:
sizeLimit: "1Gi"
- name: tsdb
emptyDir:
sizeLimit: "5Gi"
- name: tsdb-sync
emptyDir:
sizeLimit: "1Gi"
- name: compactor
emptyDir:
sizeLimit: "1Gi"
- configMap:
name: mimir
name: conf