Skip to content

Commit

Permalink
Autoscaller (#33)
Browse files Browse the repository at this point in the history
* chore: bump the autoscaller version

the commit message needs a body

* chore: fix the config

the commit message needs a body

* chore: temporarily allow autoscaling

the commit message needs a body
  • Loading branch information
thegentlemanphysicist authored May 29, 2023
1 parent 5e309dc commit 4a3b74d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
helm/**/charts
get-pip.py
6 changes: 4 additions & 2 deletions helm/aggregator/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "aggregator.fullname" . }}
Expand All @@ -17,7 +17,9 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
Expand Down
4 changes: 4 additions & 0 deletions helm/aggregator/values-c6af30-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ patroni:
compactor:
enabled: true
retentionPeriod: "1 month"

# to test the upgrade in sandbox we need to temporarily enable autoscalling
autoscaling:
enabled: true

0 comments on commit 4a3b74d

Please sign in to comment.