8000 Restart compacts by philipgough · Pull Request #925 · rhobs/configuration · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Restart compacts #925

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

Merged
merged 1 commit into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion magefiles/thanos.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (p Production) Thanos() {

objs = append(objs, queryCR(ns, ProductionMaps, true, tmpAdditionalQueryArgs...)...)
objs = append(objs, tmpStoreProduction(ns, ProductionMaps)...)
//objs = append(objs, compactTempProduction()...)
objs = append(objs, compactTempProduction()...)

// Sort objects by Kind then Name
sort.Slice(objs, func(i, j int) bool {
Expand Down
140 changes: 140 additions & 0 deletions resources/services/rhobs-thanos-operator/production/rhobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,98 @@ objects:
maxTime: -22h
version: 03c9fefbda1b33830a950bd28484fa0a1e039555
status: {}
- apiVersion: monitoring.thanos.io/v1alpha1
kind: ThanosCompact
metadata:
creationTimestamp: null
name: receive-historic
namespace: rhobs-production
spec:
additionalArgs:
- --deduplication.replica-label=replica
baseImage: quay.io/redhat-user-workloads/rhobs-mco-tenant/rhobs-konflux-thanos
compactConfig:
blockFetchConcurrency: 4
compactConcurrency: 4
debugConfig:
acceptMalformedIndex: true
haltOnError: true
maxCompactionLevel: 4
downsamplingConfig:
disable: false
downsamplingConcurrency: 4
featureGates:
serviceMonitor:
enable: false
imagePullPolicy: IfNotPresent
logFormat: logfmt
logLevel: info
objectStorageConfig:
key: thanos.yaml
name: thanos-objectstorage
optional: false
retentionConfig:
fiveMinutes: 3650d
oneHour: 3650d
raw: 3650d
shardingConfig:
- externalLabelSharding:
- label: receive
value: "true"
- label: tenant_id
value: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
shardName: telemeter
storageSize: 3000Gi
timeRangeConfig:
maxTime: -120d
version: 03c9fefbda1b33830a950bd28484fa0a1e039555
status: {}
- apiVersion: monitoring.thanos.io/v1alpha1
kind: ThanosCompact
metadata:
creationTimestamp: null
name: receive
namespace: rhobs-production
spec:
additionalArgs:
- --deduplication.replica-label=replica
baseImage: quay.io/redhat-user-workloads/rhobs-mco-tenant/rhobs-konflux-thanos
compactConfig:
blockFetchConcurrency: 4
10000 compactConcurrency: 4
debugConfig:
acceptMalformedIndex: true
haltOnError: true
maxCompactionLevel: 4
downsamplingConfig:
disable: false
downsamplingConcurrency: 4
featureGates:
serviceMonitor:
enable: false
imagePullPolicy: IfNotPresent
logFormat: logfmt
logLevel: info
objectStorageConfig:
key: thanos.yaml
name: thanos-objectstorage
optional: false
retentionConfig:
fiveMinutes: 3650d
oneHour: 3650d
raw: 3650d
shardingConfig:
- externalLabelSharding:
- label: receive
value: "true"
- label: tenant_id
value: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
shardName: telemeter
storageSize: 3000Gi
timeRangeConfig:
minTime: -61d
version: 03c9fefbda1b33830a950bd28484fa0a1e039555
status: {}
- apiVersion: monitoring.thanos.io/v1alpha1
kind: ThanosQuery
metadata:
Expand Down Expand Up @@ -186,6 +278,54 @@ objects:
webConfig:
prefixHeader: X-Forwarded-Prefix
status: {}
- apiVersion: monitoring.thanos.io/v1alpha1
kind: ThanosCompact
metadata:
creationTimestamp: null
name: rules-and-rhobs
namespace: rhobs-production
spec:
additionalArgs:
- --deduplication.replica-label=replica
baseImage: quay.io/redhat-user-workloads/rhobs-mco-tenant/rhobs-konflux-thanos
compactConfig:
blockFetchConcurrency: 8
compactConcurrency: 8
debugConfig:
acceptMalformedIndex: true
haltOnError: false
maxCompactionLevel: 4
downsamplingConfig:
disable: false
downsamplingConcurrency: 4
featureGates:
serviceMonitor:
enable: false
imagePullPolicy: IfNotPresent
logFormat: logfmt
logLevel: warn
objectStorageConfig:
key: thanos.yaml
name: thanos-objectstorage
optional: false
retentionConfig:
fiveMinutes: 3650d
oneHour: 3650d
raw: 3650d
shardingConfig:
- externalLabelSharding:
- label: receive
value: "true"
- label: tenant_id
value: 0fc2b00e-201b-4c17-b9f2-19d91adc4fd2
shardName: rhobs
- externalLabelSharding:
- label: receive
value: '!true'
shardName: rules
storageSize: 500Gi
version: 03c9fefbda1b33830a950bd28484fa0a1e039555
status: {}
- apiVersion: monitoring.thanos.io/v1alpha1
kind: ThanosStore
metadata:
Expand Down
0