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

core: allow setting and propagation of eval priority on job de/registration #11532

Merged
merged 9 commits into from
Nov 23, 2021

Commits on Nov 18, 2021

  1. core: allow setting and propagation of eval priority.

    This change modifies the Nomad job register and deregister RPCs to
    accept an updated option set which includes eval priority. This
    param is optional and override the use of the job priority to set
    the eval priority.
    
    In order to ensure all evaluations as a result of the request use
    the same eval priority, the priority is shared to the
    allocReconciler and deploymentWatcher. This creates a new
    distinction between eval priority and job priority.
    jrasell committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    3eeded7 View commit details
    Browse the repository at this point in the history
  2. http: allow setting eval priority in job update and delete.

    The Nomad agent HTTP API has been modified to allow setting the
    eval priority on job update and delete. To keep consistency with
    the current v1 API, job update accepts this as a payload param;
    job delete accepts this as a query param.
    
    Any user supplied value is validated within the agent HTTP handler
    removing the need to pass invalid requests to the server.
    jrasell committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    db84a1f View commit details
    Browse the repository at this point in the history
  3. api: allow setting eval priority on job update and delete.

    The register and deregister opts functions now all for setting
    the eval priority on requests.
    
    The change includes a small change to the DeregisterOpts function
    which handles nil opts. This brings the function inline with the
    RegisterOpts.
    jrasell committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    b0dd99d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6463de5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c0989ad View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    75809b0 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Configuration menu
    Copy the full SHA
    e606ca6 View commit details
    Browse the repository at this point in the history
  2. changelog: add entry for #11532

    jrasell committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    b041cda View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    572da5d View commit details
    Browse the repository at this point in the history