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

Improve Evenscheduler to schedule executors based supervisor used slots #673

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fxjwind
Copy link

@fxjwind fxjwind commented Sep 4, 2013

  • fix wrong comment
  • improve the logic of sort-slots #359

@patricioe
Copy link

Is this solving the problem of no allocating evenly based on currently used slots?

In my case, rebalance command keeps on sending the worker to the same machine instead of the one of all free slots.

executor3 (WorkerSlot. "supervisor1" (int 5))
executor4 (WorkerSlot. "supervisor2" (int 2))
executor5 (WorkerSlot. "supervisor3" (int 11))
executor6 (WorkerSlot. "supervisor4" (int 12))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test data here actually violates the worker number constraints, you specified the worker number to 4 for topology1, but here it is assigned 6 different workers.

@fxjwind
Copy link
Author

fxjwind commented Oct 8, 2013

@xumingming , thanks for your comments, have already updated

@fxjwind
Copy link
Author

fxjwind commented Oct 8, 2013

@patricioe , you are right, this fix will choose supervisor with less workers(used-slots) preferentially.

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.

3 participants