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. 11 Oct, 2022 1 commit
    • 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
  2. 04 Apr, 2022 1 commit
    • Seth Hoenig's avatar
      raw_exec: make raw exec driver work with cgroups v2 · be7ec8de
      Seth Hoenig authored
      This PR adds support for the raw_exec driver on systems with only cgroups v2.
      
      The raw exec driver is able to use cgroups to manage processes. This happens
      only on Linux, when exec_driver is enabled, and the no_cgroups option is not
      set. The driver uses the freezer controller to freeze processes of a task,
      issue a sigkill, then unfreeze. Previously the implementation assumed cgroups
      v1, and now it also supports cgroups v2.
      
      There is a bit of refactoring in this PR, but the fundamental design remains
      the same.
      
      Closes #12351 #12348
      be7ec8de
  3. 04 Nov, 2021 1 commit
  4. 06 Oct, 2021 1 commit
  5. 31 Aug, 2020 1 commit
  6. 11 Aug, 2020 1 commit
  7. 18 Sep, 2019 2 commits
  8. 20 Feb, 2019 1 commit
    • Danielle Tomlinson's avatar
      ui: Support colored output on Windows · ed9818a5
      Danielle Tomlinson authored
      This commit uses the go-colorable library to enable support for coloured
      UI output on Windows. This acts as a compatibility layer that takes
      standard unix-y terminal codes and translates them into the requisite
      windows calls as required.
      ed9818a5
  9. 23 Jan, 2019 1 commit
  10. 16 Oct, 2018 1 commit
    • Nick Ethier's avatar
      executor v2 (#4656) · 5b14d24b
      Nick Ethier authored
      * client/executor: refactor client to remove interpolation
      
      * executor: POC libcontainer based executor
      
      * vendor: use hashicorp libcontainer fork
      
      * vendor: add libcontainer/nsenter dep
      
      * executor: updated executor interface to simplify operations
      
      * executor: implement logging pipe
      
      * logmon: new logmon plugin to manage task logs
      
      * driver/executor: use logmon for log management
      
      * executor: fix tests and windows build
      
      * executor: fix logging key names
      
      * executor: fix test failures
      
      * executor: add config field to toggle between using libcontainer and standard executors
      
      * logmon: use discover utility to discover nomad executable
      
      * executor: only call libcontainer-shim on main in linux
      
      * logmon: use seperate path configs for stdout/stderr fifos
      
      * executor: windows fixes
      
      * executor: created reusable pid stats collection utility that can be used in an executor
      
      * executor: update fifo.Open calls
      
      * executor: fix build
      
      * remove executor from...
      5b14d24b
  11. 30 Mar, 2018 1 commit
  12. 29 Mar, 2018 1 commit
  13. 23 Mar, 2018 1 commit
  14. 22 Mar, 2018 4 commits
  15. 21 Mar, 2018 2 commits
  16. 13 Oct, 2017 1 commit
  17. 26 Sep, 2017 1 commit
  18. 15 Sep, 2017 3 commits
  19. 08 Sep, 2017 2 commits
  20. 16 Aug, 2017 1 commit
    • Alex Dadgar's avatar
      Add version package · c26ecb70
      Alex Dadgar authored
      This PR adds a version package and consolidates version strings into a
      Version struct.
      c26ecb70
  21. 26 Jul, 2017 1 commit
  22. 25 Jul, 2017 1 commit
  23. 19 Jul, 2017 1 commit
  24. 17 Jul, 2017 2 commits
  25. 07 Jul, 2017 5 commits
  26. 10 Feb, 2017 1 commit
  27. 09 Feb, 2017 1 commit