Skip to content
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

Per-item scaling based on metric labels (Prometheus Scaler) #6252

Open
curtisraymond opened this issue Oct 20, 2024 · 5 comments
Open

Per-item scaling based on metric labels (Prometheus Scaler) #6252

curtisraymond opened this issue Oct 20, 2024 · 5 comments
Labels
feature-request All issues for new features that have not been committed to needs-discussion stale All issues that are marked as stale due to inactivity

Comments

@curtisraymond
Copy link

Proposal

I'm looking to optimize my current ScaledJob configuration so that when multiple PostgreSQL PVCs exceed a usage threshold, a separate job is launched for each PVC rather than processing them sequentially within a single job. This would improve efficiency and parallelism in resizing PVCs.

My current understanding is that KEDA's ScaledJob with the Prometheus scaler doesn't natively support per-item scaling based on metric labels (e.g., PVC names). This means I can't directly create multiple jobs, each with a different PVC name, based on the metric labels returned from the Prometheus query.

Use-Case

No response

Is this a feature you are interested in implementing yourself?

No

Anything else?

No response

@curtisraymond curtisraymond added feature-request All issues for new features that have not been committed to needs-discussion labels Oct 20, 2024
@JorTurFer
Copy link
Member

Hello
That's correct, KEDA doesn't support changing the PVC name as it doesn't modify the workload at all.

@curtisraymond
Copy link
Author

@JorTurFer, I'm not trying to change the PVC name. Instead, I'm aiming to resize the PVC using a KEDA ScaledJob that targets PVCs based on their labels, so it knows which PVC to modify. However, I may have multiple PVCs that currently exceed the specified threshold parameter in the ScaledJob, and therefore each will need to be resized.

@JorTurFer
Copy link
Member

JorTurFer commented Nov 3, 2024

KEDA doesn't support resizing PVC as data managing is out-of-the-scope of KEDA. There were an initiative to evaluate how to handle this but I don't remember the outcome. @zroubalik , do you remember it?

@zroubalik
Copy link
Member

I think this is slightly relevant: #5218

KEDA doesn't support resizing PVC as data managing is out-of-the-scope of KEDA. There were an initiative to evaluate how to handle this but I don't remember the outcome. @zroubalik , do you remember it?

Yeah it is this proposal: #5232

Copy link

stale bot commented Jan 5, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request All issues for new features that have not been committed to needs-discussion stale All issues that are marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

3 participants