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

Kubernetes builds load balancing #444

Open
nuclearcat opened this issue Sep 4, 2024 · 0 comments
Open

Kubernetes builds load balancing #444

nuclearcat opened this issue Sep 4, 2024 · 0 comments
Labels

Comments

@nuclearcat
Copy link
Member

Right now we have multiple clusters, and we are scheduling jobs to all of them in round-robin fashion. But we do not check if cluster is overloaded. Sometimes we keep scheduling jobs to cluster that is overloaded and have problems with scheduling jobs, as they keep piling up on this cluster.
We need to implement some kind of load balancing, that will check if cluster is overloaded (pending jobs > 2) and do not schedule to it.
I suggest following, first we go over clusters, one by one, and check if it is overloaded. If it is not, we schedule job to it. If it is, we go to next cluster.
If we reach end of list, and all clusters are overloaded, we schedule to one that had least pending jobs.

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

No branches or pull requests

1 participant