Skip to content

Commit 8e94633

Browse files
Merge pull request #3987 from KyriosGN0/compactor-roll
[tempo-distributed] add support for configureable strategy in compactors
2 parents c97a333 + 175d7cf commit 8e94633

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

charts/tempo-distributed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: tempo-distributed
33
description: Grafana Tempo in MicroService mode
44
type: application
5-
version: 1.52.8
5+
version: 1.52.9
66
appVersion: 2.9.0
77
engine: gotpl
88
home: https://grafana.com/docs/tempo/latest/

charts/tempo-distributed/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tempo-distributed
22

3-
![Version: 1.52.8](https://img.shields.io/badge/Version-1.52.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.9.0](https://img.shields.io/badge/AppVersion-2.9.0-informational?style=flat-square)
3+
![Version: 1.52.9](https://img.shields.io/badge/Version-1.52.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.9.0](https://img.shields.io/badge/AppVersion-2.9.0-informational?style=flat-square)
44

55
Grafana Tempo in MicroService mode
66

@@ -355,6 +355,8 @@ The memcached default args are removed and should be provided manually. The sett
355355
| compactor.replicas | int | `1` | Number of replicas for the compactor |
356356
| compactor.resources | object | `{}` | Resource requests and limits for the compactor |
357357
| compactor.service.annotations | object | `{}` | Annotations for compactor service |
358+
| compactor.strategy.rollingUpdate.maxSurge | int | `0` | |
359+
| compactor.strategy.rollingUpdate.maxUnavailable | int | `1` | |
358360
| compactor.terminationGracePeriodSeconds | int | `30` | Grace period to allow the compactor to shutdown before it is killed |
359361
| compactor.tolerations | list | `[]` | Tolerations for compactor pods |
360362
| config | string | See values.yaml | Config file contents for Tempo distributed. Passed through the `tpl` function to allow templating |

charts/tempo-distributed/templates/compactor/deployment-compactor.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ spec:
1919
selector:
2020
matchLabels:
2121
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
22+
{{- with .Values.compactor.strategy }}
2223
strategy:
23-
rollingUpdate:
24-
maxSurge: 0
25-
maxUnavailable: 1
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2626
template:
2727
metadata:
2828
labels:

charts/tempo-distributed/values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,11 @@ compactor:
663663
replicas: 1
664664
# -- Annotations for compactor deployment
665665
annotations: {}
666-
666+
# Strategy of updating pods
667+
strategy:
668+
rollingUpdate:
669+
maxSurge: 0
670+
maxUnavailable: 1
667671
# -- Autoscaling configurations
668672
autoscaling:
669673
# -- Enable autoscaling for the compactor

0 commit comments

Comments
 (0)