Skip to content

Add an optional HPA for the query-frontend - #706

Open
cvas22 wants to merge 1 commit into
cortexproject:masterfrom
cvas22:feat/query-frontend-hpa
Open

cvas22 wants to merge 1 commit into
cortexproject:masterfrom
cvas22:feat/query-frontend-hpa

Conversation

@cvas22

@cvas22 cvas22 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

What this PR does:

Adds query_frontend.autoscaling so the chart can create a HorizontalPodAutoscaler for the query-frontend, with the same fields as querier.autoscaling (min/max replicas, CPU and memory targets, behavior, extraMetrics). When it's enabled the deployment leaves out replicas, 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 lint and helm template with 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.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX], [DEPENDENCY]

I used some help from AI, please don't yell at me. Thx.

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
cvas22 force-pushed the feat/query-frontend-hpa branch from 22493d4 to 45f6aa3 Compare December 2, 2026 23:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant