This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 22 Jul, 2021 1 commit
  2. 21 Jul, 2021 5 commits
  3. 20 Jul, 2021 2 commits
    • Nicholas Cioli's avatar
      ui: add parameterized dispatch interface (#10675) · 801a7324
      Nicholas Cioli authored
      
      * ui: add parameterized dispatch interface
      
      This commit adds a new interface for dispatching parameteried jobs, if
      the user has the right permissions. The UI can be accessed by viewing a
      parameterized job and clicking on the "Dispatch Job" button located in
      the "Job Launches" section.
      
      * fix failing lint test
      
      * clean up dispatch and remove meta
      
      This commit cleans up a few things that had typos and
      inconsistent naming. In line with this, the custom
      `meta` view was removed in favor of using the
      included `AttributesTable`.
      
      * ui: encode dispatch job payload and start adding tests
      
      * ui: remove unused test imports
      
      * ui: redesign job dispatch form
      
      * ui: initial acceptance tests for dispatch job
      
      * ui: generate parameterized job children with correct id format
      
      * ui: fix job dispatch breadcrumb link
      
      * ui: refactor job dispatch component into glimmer component and add form validation
      
      * ui: remove unused CSS class
      
      * ui: align job dispatch button
      
      * ui: handle namespace-specific requests on job dispatch
      
      * ui: rename payloadMissing to payloadHasError
      
      * ui: don't re-fetch job spec on dispatch job
      
      * ui: keep overview tab selected on job dispatch page
      
      * ui: fix task and task-group linting
      
      * ui: URL encode job id on dispatch job tests
      
      * ui: fix error when job meta is null
      
      * ui: handle job dispatch from adapter
      
      * ui: add more tests for dispatch job page
      
      * ui: add "job dispatch" capability check
      
      * ui: update job dispatch from code review
      Co-authored-by: default avatarLuiz Aoqui <luiz@hashicorp.com>
      801a7324
    • Mahmood Ali's avatar
      client: avoid acting on stale data after launch (#10907) · 3165ae81
      Mahmood Ali authored
      When the client launches, use a consistent read to fetch its own allocs,
      but allow stale read afterwards as long as reads don't revert into older
      state.
      
      This change addresses an edge case affecting restarting client. When a
      client restarts, it may fetch a stale data concerning its allocs: allocs
      that have completed prior to the client shutdown may still have "run/running"
      desired/client status, and have the client attempt to re-run again.
      
      An alternative approach is to track the indices such that the client
      set MinQueryIndex on the maximum index the client ever saw, or compare
      received allocs against locally restored client state. Garbage
      collection complicates this approach (local knowledge is not complete),
      and the approach still risks starting "dead" allocations (e.g. the
      allocation may have been placed when client just restarted and have
      already been reschuled by the time the client started. This approach
      here is effective against all kinds of stalness problems with small
      overhead.
      3165ae81
  4. 19 Jul, 2021 1 commit
  5. 16 Jul, 2021 5 commits
  6. 15 Jul, 2021 2 commits
  7. 14 Jul, 2021 12 commits
  8. 13 Jul, 2021 4 commits
  9. 12 Jul, 2021 4 commits
  10. 11 Jul, 2021 2 commits
  11. 09 Jul, 2021 2 commits
    • Kent 'picat' Gruber's avatar
      Handle successful/canceled/blocked deployments in CLI output · 440d556f
      Kent 'picat' Gruber authored
      Otherwise the spinner would just end, which felt a bit awkward.
      
      I wanted to see a  "✓" to know that everything was ok, and a "!" (maybe something else?) if something went wrong.
      440d556f
    • Seth Hoenig's avatar
      consul/connect: fix bug causing high cpu with multiple connect sidecars in group · ee7d32fb
      Seth Hoenig authored
      This PR fixes a bug where the underlying Envoy process of a Connect gateway
      would consume a full core of CPU if there is more than one sidecar or gateway
      in a group. The utilization was being caused by Consul injecting an envoy_ready_listener
      on 127.0.0.1:8443, of which only one of the Envoys would be able to bind to.
      The others would spin in a hot loop trying to bind the listener.
      
      As a workaround, we now specify -address during the Envoy bootstrap config
      step, which is how Consul maps this ready listener. Because there is already
      the envoy_admin_listener, and we need to continue supporting running gateways
      in host networking mode, and in those case we want to use the same port
      value coming from the service.port field, we now bind the admin listener to
      the 127.0.0.2 loop-back interface, and the ready listener takes 127.0.0.1.
      
      This shouldn't make a difference in the 99.999% use case where envoy is
      being run in its official docker container. Advanced users can reference
      ${NOMAD_ENVOY_ADMIN_ADDR_<service>} (as they 'ought to) if needed,
      as well as the new variable ${NOMAD_ENVOY_READY_ADDR_<service>} for the
      envoy_ready_listener.
      ee7d32fb