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

Check for changes to affinity, constraints and spread during update #6703

Merged
merged 3 commits into from
Nov 19, 2019

Conversation

drewbailey
Copy link
Contributor

@drewbailey drewbailey commented Nov 14, 2019

Adds checks for affinity and constraint changes when determining if we
should update inplace.

fixes #6334

@drewbailey drewbailey requested a review from preetapan November 14, 2019 20:42
@drewbailey
Copy link
Contributor Author

drewbailey commented Nov 14, 2019

❓ If the same affinity is moved from the Job stanza into a TG stanza, this would result in a new alloc. Do we want to check for the calculated difference between all 3 possible levels of constraints/affinities?

@drewbailey drewbailey added this to the 0.10.2 milestone Nov 18, 2019
scheduler/util_test.go Outdated Show resolved Hide resolved
scheduler/util.go Outdated Show resolved Hide resolved
@drewbailey drewbailey force-pushed the b-affinity-constraint-inplace-update branch from 3ab5ba5 to 557f398 Compare November 18, 2019 21:08
@drewbailey drewbailey changed the title Check for changes to affinity and constraints during update Check for changes to affinity, constraints and spread during update Nov 18, 2019
@drewbailey drewbailey requested a review from preetapan November 18, 2019 21:09
Adds checks for affinity and constraint changes when determining if we
should update inplace.

refactor to check all levels at once

check for spread changes when checking inplace update
Fixes documentation inaccuracy for spread stanza placement. Spreads can
only exist on the top level job struct or within a group.

comment about nil assumption
@drewbailey drewbailey force-pushed the b-affinity-constraint-inplace-update branch from 557f398 to 4196b27 Compare November 19, 2019 13:29
@drewbailey drewbailey merged commit 8fa68ca into master Nov 19, 2019
@drewbailey drewbailey deleted the b-affinity-constraint-inplace-update branch November 19, 2019 13:49
@drewbailey drewbailey mentioned this pull request Feb 10, 2020
drewbailey added a commit that referenced this pull request Feb 10, 2020
This PR reverts changes introduced in #6703 that made changes to
affinities and spreads cause destructive updates.

#6988 outlines good reason to
rethink this until we have scheduler functionality in place that treats
and update to spread/affinity similar to how count changes are handled
(rebalancing the difference instead of rescheduling all allocs).
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.9.5: node-affinity stays after removing it from job spec
2 participants