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

[3.0] Fix autobalancer #651

Merged
merged 5 commits into from
Aug 20, 2019
Merged

[3.0] Fix autobalancer #651

merged 5 commits into from
Aug 20, 2019

Conversation

SDekkers
Copy link
Contributor

This updated-PR is a fix for #622.

I have updated the function to not use ternary statements, as the previous PR was closed due to using nested ternary statements.

This PR changes the way the amount of desired workers is calculated.
When the total time needed to clear all jobs is zero, it returns the minimum amount of processes, instead of the max amount of processes. When the amount of time needed to clear the jobs increases, processes will automatically scale back up.

@driesvints driesvints changed the title Fix autobalancer [3.0] Fix autobalancer Aug 20, 2019
@taylorotwell taylorotwell merged commit 33c6d26 into laravel:3.0 Aug 20, 2019
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.

2 participants