Skip to content

Commit 9ae9740

Browse files
authored
Re-ordered HPA specification to have memory as the first item in the spec.metrics list. (grafana#290)
Signed-off-by: Ryan Woods <[email protected]>
1 parent 118f8ad commit 9ae9740

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44
* [CHANGE] Use port number for prometheus port annotations. #288
55
* [CHANGE] Disable ingester startup probes by default. #286
6+
* [CHANGE] Moved HPA memory specification to be the first item in the list. #284
67
* [FEATURE] Optionally manage cortex config as configmap. #280
78
* [ENHANCEMENT] Upgrade to Cortex v1.11.0 #272
89

templates/distributor/distributor-hpa.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ spec:
1515
minReplicas: {{ .minReplicas }}
1616
maxReplicas: {{ .maxReplicas }}
1717
metrics:
18-
{{- with .targetCPUUtilizationPercentage }}
18+
{{- with .targetMemoryUtilizationPercentage }}
1919
- type: Resource
2020
resource:
21-
name: cpu
21+
name: memory
2222
target:
2323
type: Utilization
2424
averageUtilization: {{ . }}
2525
{{- end }}
26-
{{- with .targetMemoryUtilizationPercentage }}
26+
{{- with .targetCPUUtilizationPercentage }}
2727
- type: Resource
2828
resource:
29-
name: memory
29+
name: cpu
3030
target:
3131
type: Utilization
3232
averageUtilization: {{ . }}

templates/nginx/nginx-hpa.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ spec:
1515
minReplicas: {{ .minReplicas }}
1616
maxReplicas: {{ .maxReplicas }}
1717
metrics:
18-
{{- with .targetCPUUtilizationPercentage }}
18+
{{- with .targetMemoryUtilizationPercentage }}
1919
- type: Resource
2020
resource:
21-
name: cpu
21+
name: memory
2222
target:
2323
type: Utilization
2424
averageUtilization: {{ . }}
2525
{{- end }}
26-
{{- with .targetMemoryUtilizationPercentage }}
26+
{{- with .targetCPUUtilizationPercentage }}
2727
- type: Resource
2828
resource:
29-
name: memory
29+
name: cpu
3030
target:
3131
type: Utilization
3232
averageUtilization: {{ . }}

templates/querier/querier-hpa.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ spec:
1515
minReplicas: {{ .minReplicas }}
1616
maxReplicas: {{ .maxReplicas }}
1717
metrics:
18-
{{- with .targetCPUUtilizationPercentage }}
18+
{{- with .targetMemoryUtilizationPercentage }}
1919
- type: Resource
2020
resource:
21-
name: cpu
21+
name: memory
2222
target:
2323
type: Utilization
2424
averageUtilization: {{ . }}
2525
{{- end }}
26-
{{- with .targetMemoryUtilizationPercentage }}
26+
{{- with .targetCPUUtilizationPercentage }}
2727
- type: Resource
2828
resource:
29-
name: memory
29+
name: cpu
3030
target:
3131
type: Utilization
3232
averageUtilization: {{ . }}

0 commit comments

Comments
 (0)