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

Backport of cli: job restart command into release/1.5.x #16628

Merged

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #16278 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

The below text is copied from the body of the original PR.


Implement the new nomad job restart command that allows operators to restart allocations tasks or reschedule then entire allocation.

Restarts can be batched to target multiple allocations in parallel. Between each batch the command can stop and hold for a predefined time or until the user confirms that the process should proceed.

This implements the "Stateless Restarts" alternative from the original RFC
(https://gist.github.com/schmichael/e0b8b2ec1eb146301175fd87ddd46180). The original concept is still worth implementing, as it allows this functionality to be exposed over an API that can be consumed by the Nomad UI and other clients. But the implementation turned out to be more complex than we initially expected so we thought it would be better to release a stateless CLI-based implementation first to gather feedback and validate the restart behaviour.

Closes #698
Closes #10391

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/f-job-restart-cmd/sincerely-smashing-pup branch from cdde583 to 3a15e66 Compare March 23, 2023 22:29
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/f-job-restart-cmd/sincerely-smashing-pup branch from 38945ec to c16e992 Compare March 23, 2023 22:29
Implement the new `nomad job restart` command that allows operators to
restart allocations tasks or reschedule then entire allocation.

Restarts can be batched to target multiple allocations in parallel.
Between each batch the command can stop and hold for a predefined time
or until the user confirms that the process should proceed.

This implements the "Stateless Restarts" alternative from the original
RFC
(https://gist.github.com/schmichael/e0b8b2ec1eb146301175fd87ddd46180).
The original concept is still worth implementing, as it allows this
functionality to be exposed over an API that can be consumed by the
Nomad UI and other clients. But the implementation turned out to be more
complex than we initially expected so we thought it would be better to
release a stateless CLI-based implementation first to gather feedback
and validate the restart behaviour.

Co-authored-by: Shishir Mahajan <smahajan@roblox.com>
@lgfa29 lgfa29 force-pushed the backport/f-job-restart-cmd/sincerely-smashing-pup branch from c16e992 to 93eda66 Compare March 23, 2023 22:32
@github-actions
Copy link

Ember Asset Size action

As of c16e992

Files that stayed the same size 🤷‍:

File raw gzip
nomad-ui.js 0 B 0 B
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

@github-actions
Copy link

Ember Test Audit comparison

release/1.5.x c16e992 change
passes 1485 1485 0
failures 0 0 0
flaky 0 0 0
duration 11m 35s 113ms 12m 02s 954ms +27s 841ms

@lgfa29 lgfa29 merged commit b30de64 into release/1.5.x Mar 23, 2023
@lgfa29 lgfa29 deleted the backport/f-job-restart-cmd/sincerely-smashing-pup branch March 23, 2023 22:51
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