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

scheduler: warn when system jobs cannot place an alloc #11111

Merged
merged 6 commits into from
Sep 13, 2021

Commits on Aug 31, 2021

  1. scheduler: warn when system jobs cannot place an alloc

    When a system or sysbatch job specify constraints that none of the
    current nodes meet, report a warning to the user.
    
    Also, for sysbatch job, mark the job as dead as a result.
    
    A sample run would look like:
    
    ```
    $ nomad job run ./example.nomad
    ==> 2021-08-31T16:57:35-04:00: Monitoring evaluation "b48e8882"
        2021-08-31T16:57:35-04:00: Evaluation triggered by job "example"
    ==> 2021-08-31T16:57:36-04:00: Monitoring evaluation "b48e8882"
        2021-08-31T16:57:36-04:00: Evaluation status changed: "pending" -> "complete"
    ==> 2021-08-31T16:57:36-04:00: Evaluation "b48e8882" finished with status "complete" but failed to place all allocations:
        2021-08-31T16:57:36-04:00: Task Group "cache" (failed to place 1 allocation):
          * Constraint "${meta.tag} = bar": 2 nodes excluded by filter
          * Constraint "${attr.kernel.name} = linux": 1 nodes excluded by filter
    
    $ nomad job status example
    ID            = example
    Name          = example
    Submit Date   = 2021-08-31T16:57:35-04:00
    Type          = sysbatch
    Priority      = 50
    Datacenters   = dc1
    Namespace     = default
    Status        = dead
    Periodic      = false
    Parameterized = false
    
    Summary
    Task Group  Queued  Starting  Running  Failed  Complete  Lost
    cache       0       0         0        0       0         0
    
    Allocations
    No allocations placed
    ```
    Mahmood Ali committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    41b853b View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Configuration menu
    Copy the full SHA
    044ce3c View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

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

    lgfa29 committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    dda8cc7 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. scheduler: deep copy AllocMetric

    Defensively deep copy AllocMetric to avoid side effects from shared map
    references.
    schmichael committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    334a491 View commit details
    Browse the repository at this point in the history
  2. docs: focus changelog entry for #11111 on the ux

    While I don't think this fully encompasses the changes, other bits
    like marking sysbatch as dead immediately are new so haven't changed
    from a previous release.
    schmichael committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    2a142da View commit details
    Browse the repository at this point in the history