Skip to content

Commit

Permalink
Merge pull request #43 from openinfradev/compactor
Browse files Browse the repository at this point in the history
TACODEV-731: Thanos compactor config
  • Loading branch information
zugwan authored Mar 24, 2021
2 parents 7a07691 + 4033226 commit 7c70fdb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
24 changes: 20 additions & 4 deletions lma/base/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,10 +1109,14 @@ spec:
compactor:
enabled: true
logLevel: info
retentionResolutionRaw: 30d
retentionResolution5m: 30d
retentionResolution1h: 10y
consistencyDelay: 30m
retentionResolutionRaw: TO_BE_FIXED
retentionResolution5m: TO_BE_FIXED
retentionResolution1h: TO_BE_FIXED
consistencyDelay: TO_BE_FIXED
resources:
limits:
memory: TO_BE_FIXED
cpu: TO_BE_FIXED
nodeSelector: {}
service:
type: ClusterIP
Expand All @@ -1123,6 +1127,18 @@ spec:
accessModes:
- ReadWriteOnce
size: TO_BE_FIXED
extraFlags: TO_BE_FIXED
# Compaction 수행 관련 커맨트
# 아래와 같은 block stream들이 있을때
# external_labels: {cluster="eu1", replica="1", receive="true", environment="production"}
# external_labels: {cluster="eu1", replica="2", receive="true", environment="production"}
# external_labels: {cluster="us1", replica="1", receive="true", environment="production"}
# external_labels: {cluster="us1", replica="1", receive="true", environment="staging"}
# --compact.enable-vertical-compaction 와 함께 --deduplication.replica-label="replica" 라고 설정하면 아래와 같이 compcation됨
# external_labels: {cluster="eu1", receive="true", environment="production"} (2 streams, resulted in one)
# external_labels: {cluster="us1", receive="true", environment="production"}
# external_labels: {cluster="us1", receive="true", environment="staging"}

storegateway:
enabled: true
logLevel: info
Expand Down
9 changes: 8 additions & 1 deletion lma/base/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,17 @@ charts:
storegateway.nodeSelector: $(nodeSelector)
ruler.nodeSelector: $(nodeSelector)

compactor.retentionResolutionRaw: 30d
compactor.retentionResolution5m: 30d
compactor.retentionResolution1h: 10y
compactor.consistencyDelay: 30m
compactor.resources.limits.memory: 1024Mi
compactor.resources.limits.cpu: 1000m
compactor.persistence.size: 8Gi
compactor.extraFlags:
storegateway.persistence.size: 8Gi
ruler.alertmanagers:
- http://prometheus-operator-alertmanager:9093
- http://fed-master-alertmanager:9093
ruler.config: |-
groups:
- name: "metamonitoring"
Expand Down

0 comments on commit 7c70fdb

Please sign in to comment.