Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 6a50d0c

Browse files
authored
Merge pull request #215 from grafana/parallelly-scale-compactor
Switch compactor statefulset to Parallel pod management policy
2 parents 4f9ddcd + 3aa9791 commit 6a50d0c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
ingester_statefulset+:
1515
statefulSet.mixin.spec.withReplicas(6),
1616
```
17+
* [CHANGE] The compactor statefulset is now configured with the `Parallel` pod management policy, in order to scale up quickly. #214
1718
* [ENHANCEMENT] Add the Ruler to the read resources dashboard #205
1819
* [ENHANCEMENT] Read dashboards now use `cortex_querier_request_duration_seconds` metrics to allow for accurate dashboards when deploying Cortex as a single-binary. #199
1920
* [ENHANCEMENT] Improved Ruler dashboard. Includes information about notifications, reads/writes, and per user per rule group evaluation. #197, #205

cortex/tsdb.libsonnet

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@
163163
statefulSet.mixin.spec.selector.withMatchLabels({ name: 'compactor' }) +
164164
statefulSet.mixin.spec.template.spec.securityContext.withRunAsUser(0) +
165165
statefulSet.mixin.spec.updateStrategy.withType('RollingUpdate') +
166-
statefulSet.mixin.spec.template.spec.withTerminationGracePeriodSeconds(900),
166+
statefulSet.mixin.spec.template.spec.withTerminationGracePeriodSeconds(900) +
167+
// Parallelly scale up/down compactor instances instead of starting them
168+
// one by one. This does NOT affect rolling updates: they will continue to be
169+
// rolled out one by one (the next pod will be rolled out once the previous is
170+
// ready).
171+
statefulSet.mixin.spec.withPodManagementPolicy('Parallel'),
167172

168173
// The store-gateway runs a statefulset.
169174
local store_gateway_data_pvc =

0 commit comments

Comments
 (0)