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
43 changes: 34 additions & 9 deletions deployment/mimir/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,32 @@ spec:
containers:
- args:
# - '-config.file=/conf/mimir.yaml'
- '-target=all,overrides-exporter'
- '-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'
- '-distributor.remote-timeout=5s'
- '-ingester.ring.replication-factor=1'
- '-ingester.push-circuit-breaker.request-timeout=10s'
- '-log.level=warn'
- '-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'
- '-ingester.out-of-order-time-window=5m'
- '-blocks-storage.bucket-store.ignore-blocks-within=0s'
image: grafana/mimir:2.13.0
imagePullPolicy: IfNotPresent
name: mimir
Expand All @@ -48,21 +63,25 @@ spec:
resources:
limits:
cpu: 100m
memory: "1Gi"
memory: "2Gi"
requests:
cpu: 50m
memory: "512Mi"
cpu: 100m
memory: "2Gi"
volumeMounts:
- mountPath: /conf
name: conf
- name: data
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 +98,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