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

Series of scheduler fixes / debugging enhancements #4720

Merged
merged 14 commits into from Sep 25, 2018
Merged

Series of scheduler fixes / debugging enhancements #4720

merged 14 commits into from Sep 25, 2018

Conversation

dadgar and others added 14 commits September 21, 2018 13:59
Fixes three issues:
1. Retrieving the latest evaluation index was not properly selecting the
greatest index. This would undermine checks we had to reduce the number
of evaluations created when the latest eval index was greater than any
alloc change
2. Fix an issue where the blocking query code was using the incorrect
index such that the index was higher than necassary.
3. Special case handling of blocked evaluation since the create/snapshot
index is no particularly useful since they can be reblocked.
Denormalize jobs in AppendAllocs:
AppendAlloc was originally only ever called for inplace upgrades and new
allocations. Both these code paths would remove the job from the
allocation. Now we use this to also add fields such as FollowupEvalID
which did not normalize the job. This is only a performance enhancement.

Ignore terminal allocs:
Failed allocations are annotated with the followup Eval ID when one is
created to replace the failed allocation. However, in the plan applier,
when we check if allocations fit, these terminal allocations were not
filtered. This could result in the plan being rejected if the node would
be overcommited if the terminal allocations resources were considered.
Give blocked evals a unique triggerby reason to make debugging a chain
of evaluations easier.
Fix deployment watcher index usage
@jippi
Copy link
Contributor

jippi commented Sep 25, 2018

Can you outline what the changes actually fixes? :)

@dadgar
Copy link
Contributor Author

dadgar commented Sep 25, 2018

@jippi You can look at the individual PRs for context. This branch was just a place to merge individual fixes. The changelog also has documentation of the fixes: https://github.com/hashicorp/nomad/blob/release-086/CHANGELOG.md#086-september-24-2018

@dadgar dadgar merged commit 589e672 into master Sep 25, 2018
dadgar added a commit that referenced this pull request Sep 25, 2018
Series of scheduler fixes / debugging enhancements
@nickethier nickethier deleted the b-jet-fixes branch April 28, 2020 02:59
@github-actions
Copy link

github-actions bot commented Jan 8, 2023

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 8, 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.

None yet

3 participants