-
Notifications
You must be signed in to change notification settings - Fork 98
Rework HPA scaling metrics and their configuration #1090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e0452d5
Disable vLLM warmup with HPA autoscaling
eero-t 00bbd13
Simplify HPA rules + add HPA queue size target variable
eero-t f479ea0
Fix metrics dashboad next tokens rate query for TGI
eero-t 456481e
Change vLLM custom metric from queue size to active requests sum
eero-t 30a3265
Add autoscaling metric documentation
eero-t a39b5c0
Improve ChatQnA HPA enabling comments
eero-t f2370c0
HPA document improvement suggestions from Markus
eero-t File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,64 @@ | ||
| # Copyright (C) 2024 Intel Corporation | ||
| # Copyright (C) 2024-2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Enable HorizontalPodAutoscaler (HPA) | ||
| # Enable HorizontalPodAutoscaler (HPA) for ChatQnA and its components | ||
| # | ||
| # That will overwrite named PrometheusAdapter configMap with ChatQnA specific | ||
| # custom metric queries for embedding, reranking, and LLM services. | ||
| # Will create configMap with ChatQnA specific custom metric queries for embedding, reranking, | ||
| # and LLM inferencing services, which can be used to overwrite current PrometheusAdapter rules. | ||
| # This will then provide custom metrics used by HorizontalPodAutoscaler rules of each service. | ||
| # | ||
| # Default upstream configMap is in: | ||
| # Default upstream adapter configMap is in: | ||
| # - https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/deploy/manifests/config-map.yaml | ||
|
|
||
| dashboard: | ||
| scaling: true | ||
|
|
||
| autoscaling: | ||
| enabled: true | ||
|
|
||
| global: | ||
| # K8s custom metrics (used for scaling thresholds) are based on metrics from service monitoring | ||
| # Both Grafana dashboards and k8s custom metrics need (Prometheus) metrics for services | ||
| monitoring: true | ||
|
|
||
| # Override values in specific subcharts | ||
| # | ||
| # Note: enabling "autoscaling" for any of the subcharts requires enabling it also above! | ||
|
|
||
| dashboard: | ||
| # add also scaling metrics dashboard to Grafana | ||
| scaling: true | ||
|
|
||
| # Enabling "autoscaling" for any of the subcharts requires enabling it also above! | ||
| vllm: | ||
| # vLLM startup takes too long for autoscaling, especially with Gaudi | ||
| VLLM_SKIP_WARMUP: "true" | ||
| autoscaling: | ||
| enabled: true | ||
| minReplicas: 1 | ||
| maxReplicas: 4 | ||
| enabled: true | ||
| activeRequestsTarget: | ||
| accel: 120 | ||
| cpu: 10 | ||
|
|
||
| tgi: | ||
| autoscaling: | ||
| enabled: true | ||
| minReplicas: 1 | ||
| maxReplicas: 4 | ||
| enabled: true | ||
| queueSizeTarget: | ||
| accel: 10 | ||
| cpu: 10 | ||
|
|
||
| teirerank: | ||
| autoscaling: | ||
| enabled: true | ||
| minReplicas: 1 | ||
| maxReplicas: 3 | ||
| enabled: true | ||
| queueSizeTarget: | ||
| accel: 10 | ||
| cpu: 10 | ||
|
|
||
| tei: | ||
| autoscaling: | ||
| enabled: true | ||
| minReplicas: 1 | ||
| maxReplicas: 2 | ||
| enabled: true | ||
| queueSizeTarget: | ||
| accel: 10 | ||
| cpu: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.