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. 31 Jul, 2019 2 commits
  2. 11 Jun, 2019 1 commit
  3. 24 May, 2019 1 commit
  4. 20 May, 2019 1 commit
    • Mahmood Ali's avatar
      drivers/exec: Restore 0.8 capabilities · 82611af9
      Mahmood Ali authored
      Nomad 0.9 incidentally set effective capabilities that is higher than
      what's expected of a `nobody` process, and what's set in 0.8.
      
      This change restores the capabilities to ones used in Nomad 0.9.
      82611af9
  5. 10 May, 2019 3 commits
    • Mahmood Ali's avatar
      7f76aedf
    • Mahmood Ali's avatar
      executors: implement streaming exec · 976bfbc4
      Mahmood Ali authored
      Implements streamign exec handling in both executors (i.e. universal and
      libcontainer).
      
      For creation of TTY, some incidental complexity leaked in.  The universal
      executor uses github.com/kr/pty for creation of TTYs.
      
      On the other hand, libcontainer expects a console socket and for libcontainer to
      create the underlying console object on process start.  The caller can then use
      `libcontainer.utils.RecvFd()` to get tty master end.
      
      I chose github.com/kr/pty for managing TTYs here.  I tried
      `github.com/containerd/console` package (which is already imported), but the
      package did not work as expected on macOS.
      976bfbc4
    • Lang Martin's avatar
      executor_linux only do path resolution in the taskDir, not local · a9da4bac
      Lang Martin authored
      split out lookPathIn to show it's similarity to exec.LookPath
      a9da4bac
  6. 08 May, 2019 1 commit
  7. 07 May, 2019 2 commits
  8. 03 May, 2019 2 commits
  9. 19 Apr, 2019 2 commits
  10. 02 Apr, 2019 3 commits
  11. 01 Apr, 2019 1 commit
  12. 20 Mar, 2019 1 commit
  13. 17 Mar, 2019 1 commit
  14. 16 Mar, 2019 1 commit
  15. 01 Mar, 2019 1 commit
  16. 20 Feb, 2019 1 commit
  17. 14 Jan, 2019 1 commit
  18. 12 Jan, 2019 1 commit
    • Nick Ethier's avatar
      executor: implement streaming stats API · fbf9a4c7
      Nick Ethier authored
      plugins/driver: update driver interface to support streaming stats
      
      client/tr: use streaming stats api
      
      TODO:
       * how to handle errors and closed channel during stats streaming
       * prevent tight loop if Stats(ctx) returns an error
      
      drivers: update drivers TaskStats RPC to handle streaming results
      
      executor: better error handling in stats rpc
      
      docker: better control and error handling of stats rpc
      
      driver: allow stats to return a recoverable error
      fbf9a4c7
  19. 11 Jan, 2019 1 commit
    • Alex Dadgar's avatar
      Plugins use parent loggers · 270ae48b
      Alex Dadgar authored
      This PR fixes various instances of plugins being launched without using
      the parent loggers. This meant that logs would not all go to the same
      output, break formatting etc.
      270ae48b
  20. 08 Jan, 2019 2 commits
    • Mahmood Ali's avatar
      executor: add a comment detailing isolation · 060588da
      Mahmood Ali authored
      060588da
    • Mahmood Ali's avatar
      drivers: re-export ResourceUsage structs · 800a3522
      Mahmood Ali authored
      Re-export the ResourceUsage structs in drivers package to avoid drivers
      directly depending on the internal client/structs package directly.
      
      I attempted moving the structs to drivers, but that caused some import
      cycles that was a bit hard to disentagle.  Alternatively, I added an
      alias here that's sufficient for our purposes of avoiding external
      drivers depend on internal packages, while allowing us to restructure
      packages in future without breaking source compatibility.
      800a3522
  21. 06 Jan, 2019 1 commit
    • Mahmood Ali's avatar
      drivers/exec: restrict devices exposed to tasks · c26dfb00
      Mahmood Ali authored
      We ultimately decided to provide a limited set of devices in exec/java
      drivers instead of all of host ones.  Pre-0.9, we made all host devices
      available to exec tasks accidentally, yet most applications only use a
      small subset, and this choice limits our ability to restrict/isolate GPU
      and other devices.
      
      Starting with 0.9, by default, we only provide the same subset of
      devices Docker provides, and allow users to provide more devices as
      needed on case-by-case basis.
      
      This reverts commit 5805c64a.
      This reverts commit ff9a4a17.
      c26dfb00
  22. 04 Jan, 2019 1 commit
  23. 03 Jan, 2019 1 commit
    • Mahmood Ali's avatar
      drivers/exec: bind mount /dev into rootfs · ff9a4a17
      Mahmood Ali authored
      Restores pre-0.9 behavior, where Nomad makes /dev available to exec
      task.  Switching to libcontainer, we accidentally made only a small
      subset available.
      
      Here, we err on the side of preserving behavior of 0.8, instead of going
      for the sensible route, where only a reasonable subset of devices is
      mounted by default and user can opt to request more.
      ff9a4a17
  24. 18 Dec, 2018 2 commits
  25. 11 Dec, 2018 1 commit
  26. 07 Dec, 2018 3 commits
  27. 06 Dec, 2018 1 commit
    • Alex Dadgar's avatar
      Deprecate IOPS · 0953d913
      Alex Dadgar authored
      IOPS have been modelled as a resource since Nomad 0.1 but has never
      actually been detected and there is no plan in the short term to add
      detection. This is because IOPS is a bit simplistic of a unit to define
      the performance requirements from the underlying storage system. In its
      current state it adds unnecessary confusion and can be removed without
      impacting any users. This PR leaves IOPS defined at the jobspec parsing
      level and in the api/ resources since these are the two public uses of
      the field. These should be considered deprecated and only exist to allow
      users to stop using them during the Nomad 0.9.x release. In the future,
      there should be no expectation that the field will exist.
      0953d913
  28. 05 Dec, 2018 1 commit