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. 18 Dec, 2019 1 commit
    • John Schlederer's avatar
      Making pull activity timeout configurable in Docker · 81592734
      John Schlederer authored
      * Making pull activity timeout configurable in Docker plugin config, first pass
      
      * Fixing broken function call
      
      * Fixing broken tests
      
      * Fixing linter suggestion
      
      * Adding documentation on new parameter in Docker plugin config
      
      * Adding unit test
      
      * Setting min value for pull_activity_timeout, making pull activity duration a private var
      81592734
  2. 17 Dec, 2019 2 commits
  3. 16 Dec, 2019 8 commits
  4. 13 Dec, 2019 13 commits
  5. 12 Dec, 2019 9 commits
  6. 11 Dec, 2019 7 commits
    • Mahmood Ali's avatar
      simplify cgroup path lookup · f794b49e
      Mahmood Ali authored
      f794b49e
    • Seth Hoenig's avatar
      Merge pull request #6838 from hashicorp/f-parallelize-state-store-tests · 57b38a0f
      Seth Hoenig authored
      tests: parallelize state store tests
      Unverified
      57b38a0f
    • Mahmood Ali's avatar
      executor: stop joining executor to container cgroup · 596d0be5
      Mahmood Ali authored
      Stop joining libcontainer executor process into the newly created task
      container cgroup, to ensure that the cgroups are fully destroyed on
      shutdown, and to make it consistent with other plugin processes.
      
      Previously, executor process is added to the container cgroup so the
      executor process resources get aggregated along with user processes in
      our metric aggregation.
      
      However, adding executor process to container cgroup adds some
      complications with much benefits:
      
      First, it complicates cleanup.  We must ensure that the executor is
      removed from container cgroup on shutdown.  Though, we had a bug where
      we missed removing it from the systemd cgroup.  Because executor uses
      `containerState.CgroupPaths` on launch, which includes systemd, but
      `cgroups.GetAllSubsystems` which doesn't.
      
      Second, it may have advese side-effects.  When a user process is cpu
      bound or uses too much memory, executor should remain functioning
      without risk of being killed (by OOM killer) or throttled.
      
      Third, it is inconsistent with other drivers and plugins.  Logmon and
      DockerLogger processes aren't in the task cgroups.  Neither are
      containerd processes, though it is equivalent to executor in
      responsibility.
      
      Fourth, in my experience when executor process moves cgroup while it's
      running, the cgroup aggregation is odd.  The cgroup
      `memory.usage_in_bytes` doesn't seem to capture the full memory usage of
      the executor process and becomes a red-harring when investigating memory
      issues.
      
      For all the reasons above, I opted to have executor remain in nomad
      agent cgroup and we can revisit this when we have a better story for
      plugin process cgroup management.
      596d0be5
    • Mahmood Ali's avatar
      2f4b9da6
    • Seth Hoenig's avatar
      tests: parallelize state store tests · 35fdada2
      Seth Hoenig authored
      It has been decided we're going to live in a many core world.
      Let's take advantage of that and parallelize these state store
      tests which all run in memory and are largely CPU bound.
      
      An unscientific benchmark demonstrating the improvement:
      
      [mp state (master)] $ go test
      PASS
      ok  	github.com/hashicorp/nomad/nomad/state	5.162s
      
      [mp state (f-parallelize-state-store-tests)] $ go test
      PASS
      ok  	github.com/hashicorp/nomad/nomad/state	1.527s
      35fdada2
    • Tim Gross's avatar
    • Drew Bailey's avatar
      Merge pull request #6834 from hashicorp/monitor-changelog · c28722e7
      Drew Bailey authored
      add 6828 to changelog
      Unverified
      c28722e7