Skip to content

Commit c4dab15

Browse files
authored
Remove startup probe from compactor (#542)
* Remove startup probe from compactor In some circumstances the compactor might take a long time to start and that is not really a bug. For example when there is a high number of partial blocks to read. * Update CHANGELOG.md * more more * Update README.md * Fix when startupProbe is empty Signed-off-by: Friedrich Gonzalez <[email protected]> --------- Signed-off-by: Friedrich Gonzalez <[email protected]>
1 parent 0f642a3 commit c4dab15

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master / unreleased
44

5+
* [CHANGE] Remove startup probes from compactors from default values. It's not recommended in general #542
56
* [CHANGE] Use default value for num_tokens in ingester configuration #544
67

78
## 2.6.0 / 2025-05-07

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,7 @@ Kubernetes: `^1.19.0-0`
206206
| compactor.&ZeroWidthSpace;serviceMonitor.&ZeroWidthSpace;metricRelabelings | list | `[]` | |
207207
| compactor.&ZeroWidthSpace;serviceMonitor.&ZeroWidthSpace;podTargetLabels | list | `[]` | |
208208
| compactor.&ZeroWidthSpace;serviceMonitor.&ZeroWidthSpace;relabelings | list | `[]` | |
209-
| compactor.&ZeroWidthSpace;startupProbe.&ZeroWidthSpace;failureThreshold | int | `60` | |
210-
| compactor.&ZeroWidthSpace;startupProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;path | string | `"/ready"` | |
211-
| compactor.&ZeroWidthSpace;startupProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;port | string | `"http-metrics"` | |
212-
| compactor.&ZeroWidthSpace;startupProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;scheme | string | `"HTTP"` | |
213-
| compactor.&ZeroWidthSpace;startupProbe.&ZeroWidthSpace;initialDelaySeconds | int | `120` | |
214-
| compactor.&ZeroWidthSpace;startupProbe.&ZeroWidthSpace;periodSeconds | int | `30` | |
209+
| compactor.&ZeroWidthSpace;startupProbe | object | `{}` | |
215210
| compactor.&ZeroWidthSpace;strategy.&ZeroWidthSpace;type | string | `"RollingUpdate"` | |
216211
| compactor.&ZeroWidthSpace;terminationGracePeriodSeconds | int | `240` | |
217212
| compactor.&ZeroWidthSpace;tolerations | list | `[]` | |

templates/compactor/compactor-statefulset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ spec:
131131
- name: gossip
132132
containerPort: {{ .Values.config.memberlist.bind_port }}
133133
protocol: TCP
134+
{{- if .Values.compactor.startupProbe }}
134135
startupProbe:
135136
{{- toYaml .Values.compactor.startupProbe | nindent 12 }}
137+
{{- end }}
136138
{{- if .Values.compactor.livenessProbe }}
137139
livenessProbe:
138140
{{- toYaml .Values.compactor.livenessProbe | nindent 12 }}

values.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,14 +1547,7 @@ compactor:
15471547
# whenDeleted: Retain
15481548
# whenScaled: Retain
15491549

1550-
startupProbe:
1551-
failureThreshold: 60
1552-
initialDelaySeconds: 120
1553-
periodSeconds: 30
1554-
httpGet:
1555-
path: /ready
1556-
port: http-metrics
1557-
scheme: HTTP
1550+
startupProbe: {}
15581551
livenessProbe: {}
15591552
readinessProbe:
15601553
httpGet:

0 commit comments

Comments
 (0)