-
Notifications
You must be signed in to change notification settings - Fork 328
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
Assign reducer ops in task assigner to make them more balanced across cluster #3048
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM over all, I left a comment.
# make reassign_worker True etc. | ||
return op.reassign_worker or ( | ||
isinstance(op, MapReduceOperand) and op.stage == OperandStage.reduce | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename reassign_worker
as _reassign_worker
and create a property with default value given different operand classes instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reassign_worker
is recorded on SchedulingHint
instead of operand itself, we cannot implement such a getter in this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… cluster (mars-project#3048) (cherry picked from commit 08d7cfe)
What do these changes do?
Related issue number
Fixes #xxxx
Check code requirements