Repository navigation
Conversation
With the query-scheduler enabled the query-frontend holds no queue and can be scaled horizontally. Add query_frontend.autoscaling, mirroring the querier, and leave replicas off the deployment when it's enabled. Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
cvas22
force-pushed
the
feat/query-frontend-hpa
branch
from
December 2, 2026 23:11
22493d4 to
45f6aa3
Compare
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does:
Adds
query_frontend.autoscalingso the chart can create a HorizontalPodAutoscaler for the query-frontend, with the same fields asquerier.autoscaling(min/max replicas, CPU and memory targets,behavior,extraMetrics). When it's enabled the deployment leaves outreplicas, like the querier does. It's off by default, so nothing changes unless you turn it on.Once the query-scheduler is in use, the queue lives there and the query-frontend can be scaled like any stateless component (https://cortexmetrics.io/docs/operations/scaling-query-frontend/). The values comment says that, since scaling the frontend without the scheduler splits the queue.
I checked it with
helm lintandhelm templatewith autoscaling on and off, and regenerated the README with helm-docs.Which issue(s) this PR fixes:
Same request as #434, which the stale bot closed.
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX],[DEPENDENCY]I used some help from AI, please don't yell at me. Thx.