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

Issues in Scaling the pods above 200 in scaled jobs #6148

Open
chaithraPadmar opened this issue Sep 10, 2024 Discussed in #6146 · 6 comments
Open

Issues in Scaling the pods above 200 in scaled jobs #6148

chaithraPadmar opened this issue Sep 10, 2024 Discussed in #6146 · 6 comments

Comments

@chaithraPadmar
Copy link

Discussed in #6146

Originally posted by chaithraPadmar September 10, 2024
Hi,

Version used.. 2.10.0 of keda

When we set min replica to lower numbers.. say 20
The effective max numbers of jobs post pipeline queue increases above 200 runnning jobs, we do see only 220 pods/jobs running

We have 1pipeline job per pod and using azure_pipeline triggers and scaled jobs

Is it the expected behaviour

If yes, how to manage wide range of scaling say minReplica 20, maxReplica 500

Regards
Chaithra

@chaithraPadmar
Copy link
Author

Hi @JorTurFer ,

Kindly help with the query

Regards
Chaithra

@JorTurFer
Copy link
Member

Hello
Yeah, min replica for ScaledJobs are the min replicas that will be available, so minReplicaCount: 20 and 100 required jobs will create 120 jobs. It's the expected behaviour and it's done to have some pods ready to process the load proactively:
image

@chaithraPadmar
Copy link
Author

chaithraPadmar commented Oct 2, 2024 via email

@JorTurFer
Copy link
Member

Have you increased the value of jobsToFetch?

@chaithraPadmar
Copy link
Author

chaithraPadmar commented Oct 3, 2024 via email

@JorTurFer
Copy link
Member

You should have it bigger than the replicas. Currently, AzDO API doesn't expose the total value, so KEDA pulls all the pending jobs and filter&count them locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Triage
Development

No branches or pull requests

2 participants