Skip to content

Commit

Permalink
Adding worker autoscaling support with KEDA
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaberdaku committed Dec 15, 2024
1 parent 21bfb02 commit 52c79e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ Fast distributed SQL query engine for big data analytics that helps you explore
metadata:
serverAddress: "http://prometheus.example.com"
threshold: "1"
metricName: running_queries
metricName: required_workers
query: >-
sum by (service)
(avg_over_time(trino_execution_resourcegroups_InternalResourceGroup_RunningQueries{service={{ include "trino.fullname" . | quote }}}[5s]))
(avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{service={{ include "trino.fullname" . | quote }}}[5s]))
```
* `server.keda.annotations` - object, default: `{}`

Expand Down
4 changes: 2 additions & 2 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ server:
# metadata:
# serverAddress: "http://prometheus.example.com"
# threshold: "1"
# metricName: running_queries
# metricName: required_workers
# query: >-
# sum by (service)
# (avg_over_time(trino_execution_resourcegroups_InternalResourceGroup_RunningQueries{service={{ include "trino.fullname" . | quote }}}[5s]))
# (avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{service={{ include "trino.fullname" . | quote }}}[5s]))
# ```
annotations: {}
# server.keda.annotations -- Annotations to apply to the ScaledObject CRD.
Expand Down
2 changes: 1 addition & 1 deletion tests/trino/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ server:
metadata:
serverAddress: http://prometheus-operator-kube-p-prometheus.{{ .Release.Namespace }}:9090
threshold: "1"
metricName: running_queries
metricName: required_workers
query: >-
sum by (service)
(avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{service={{ include "trino.fullname" . | quote }}}[5s]))
Expand Down

0 comments on commit 52c79e9

Please sign in to comment.