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. 14 Oct, 2022 1 commit
  2. 13 Oct, 2022 3 commits
  3. 11 Oct, 2022 4 commits
    • Tim Gross's avatar
      docker_logger: reorder imports to save memory (#14875) · b3baaa2f
      Tim Gross authored
      Nomad runs one logmon process and also one docker_logger process for each
      running allocation. A naive look at memory usage shows 10-30 MB of RSS, but a
      closer look shows that most of this memory (ex. all but ~2MB for logmon) is
      shared (`Shared_Clean` in Linux pmap).
      
      But a heap dump of docker_logger shows that it currently has an extra ~2500 KiB
      of heap (anonymously-mapped unshared memory) used for init blocks coming from
      the agent code (ex. mostly regexes from go-version, structs, and the Consul
      SDK). The packages for running logmon, docker_logger, and executor have an init
      block that parses `os.Args` to drop into their own logic, which prevents them
      from loading all the rest of the agent code and saves on memory, so this was
      unexpected.
      
      It looks like we accidentally reordered the imports in main to undo some of the
      work originally done in 404d2d4c. This changeset
      restores the ordering. A follow-up heap...
      b3baaa2f
    • Michael Schurter's avatar
      client: remove unused LogOutput and LogLevel (#14867) · f91100bd
      Michael Schurter authored
      * client: remove unused LogOutput
      
      * client: remove unused config.LogLevel
      f91100bd
    • Seth Hoenig's avatar
      helpers: lockfree lookup of nobody user on unix systems (#14866) · 9e9ddbdd
      Seth Hoenig authored
      * helpers: lockfree lookup of nobody user on linux and darwin
      
      This PR continues the nobody user lookup saga, by making the nobody
      user lookup lock-free on linux and darwin.
      
      By doing the lookup in an init block this originally broke on Windows,
      where we must avoid doing the lookup at all. We can get around that
      breakage by only doing the lookup on linux/darwin where the nobody
      user is going to exist.
      
      Also return the nobody user by value so that a copy is created that
      cannot be modified by callers of Nobody().
      
      * helper: move nobody code into unix file
      9e9ddbdd
    • Seth Hoenig's avatar
      servicedisco: implicit constraint for nomad v1.4 when using nsd checks (#14868) · 41be9cc2
      Seth Hoenig authored
      This PR adds a jobspec mutator to constrain jobs making use of checks
      in the nomad service provider to nomad clients of at least v1.4.0.
      
      Before, in a mixed client version cluster it was possible to submit
      an NSD job making use of checks and for that job to land on an older,
      incompatible client node.
      
      Closes #14862
      41be9cc2
  4. 10 Oct, 2022 3 commits
  5. 07 Oct, 2022 2 commits
  6. 06 Oct, 2022 19 commits
  7. 05 Oct, 2022 1 commit
  8. 04 Oct, 2022 5 commits
  9. 03 Oct, 2022 2 commits
    • Michael Schurter's avatar
      Fixing flaky TestOverlap test (#14780) · 617f2232
      Michael Schurter authored
      * test: ensure feasible node selected in overlap test
      
      * test: warn when getting close to retry limit
      617f2232
    • Elijah Voigt's avatar
      Docs(job-specification/periodic): Add enabled toggle (#14767) · 5fdcbf08
      Elijah Voigt authored
      This is probably undocumented for a reason, but the `enabled` toggle in the
      `periodic` stanza is very useful so I figured I try adding it to the docs.
      
      The feature has been secretly avaliable since #9142 and was called out in that
      PR as being a dubious addition, only added to avoid regressions.
      
      The use case for disabling a periodic job in this way is to prevent it from
      running without modifying the schedule. Ideally Nomad would make it more clear
      that this was the case, and allow you to force a run of the job, but even with
      those rough edges I think users would benefit from knowing about this toggle.
      5fdcbf08