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

Multiregion Deployments (OSS integration) #8184

Merged
merged 13 commits into from
Jun 17, 2020
Merged

Multiregion Deployments (OSS integration) #8184

merged 13 commits into from
Jun 17, 2020

Commits on Jun 17, 2020

  1. Multiregion structs

    Initial struct definitions, jobspec parsing, validation, and conversion
    between Nomad structs and API structs for multi-region deployments.
    tgross committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    f64f5a6 View commit details
    Browse the repository at this point in the history
  2. multiregion: request structs

    tgross committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    905755a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fdfd9f5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ce8f230 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c0974fe View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e620ff7 View commit details
    Browse the repository at this point in the history
  7. Multiregion job registration

    Integration points for multiregion jobs to be registered in the enterprise
    version of Nomad:
    * hook in `Job.Register` for enterprise to send job to peer regions
    * remove monitoring from `nomad job run` and `nomad job stop` for multiregion jobs
    tgross committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    02209b1 View commit details
    Browse the repository at this point in the history
  8. multiregion: deploymentwatcher hooks

    This changeset establishes hooks in deploymentwatcher for multiregion
    deployments (for the enterprise version of Nomad).
    tgross committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    7f9f3fe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4d2e61d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    45c2e87 View commit details
    Browse the repository at this point in the history
  11. multiregion: integrate with deploymentwatcher

    * `nextRegion` should take status parameter
    * thread Deployment/Job RPCs thru `nextRegion`
    * add `nextRegion` calls to `deploymentwatcher`
    * use a better description for paused for peer
    tgross committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    dccea99 View commit details
    Browse the repository at this point in the history
  12. multiregion: use pending instead of paused

    The `paused` state is used as an operator safety mechanism, so that they can
    debug a deployment or halt one that's causing a wider failure. By using the
    `paused` state as the first state of a multiregion deployment, we risked
    resuming an intentionally operator-paused deployment because of activity in a
    peer region.
    
    This changeset replaces the use of the `paused` state with a `pending` state,
    and provides a `Deployment.Run` internal RPC to replace the use of the
    `Deployment.Pause` (resume) RPC we were using in `deploymentwatcher`.
    tgross committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    abd3a2b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    968713b View commit details
    Browse the repository at this point in the history