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.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 07 Apr, 2022 6 commits
-
-
Seth Hoenig authored
client: set environment variable indicating set of reserved cpu cores
-
James Rasell authored
-
Seth Hoenig authored
-
Lars Lehtonen authored
-
Seth Hoenig authored
This PR injects the 'NOMAD_CPU_CORES' environment variable into tasks that have been allocated reserved cpu cores. The value uses normal cpuset notation, as found in cpuset.cpu cgroup interface files. Note this value is not necessiarly the same as the content of the actual cpuset.cpus interface file, which will also include shared cpu cores when using cgroups v2. This variable is a workaround for users who used to be able to read the reserved cgroup cpuset file, but lose the information about distinct reserved cores when using cgroups v2. Side discussion in: https://github.com/hashicorp/nomad/issues/12374
-
Derek Strickland authored
-
- 06 Apr, 2022 26 commits
-
-
Tim Gross authored
We expect every Nomad API client to use a single connection to any given agent, so take advantage of keep-alive by switching the default transport to `DefaultPooledClient`. Provide a facility to close idle connections for testing purposes. Restores the previously reverted #12409 Co-authored-by:
Ben Buzbee <bbuzbee@cloudflare.com>
-
Luiz Aoqui authored
-
Luiz Aoqui authored
-
Seth Hoenig authored
exec: fix exec handler test
-
Luiz Aoqui authored
-
James Rasell authored
When a service is updated, the service hooks update a number of internal fields which helps generate the new workload. This also needs to update the namespace for the service provider. It is possible for these to be different, and in the case of Nomad and Consul running OSS, this is to be expected.
-
James Rasell authored
This change modifies the template task runner to utilise the new consul-template which includes Nomad service lookup template funcs. In order to provide security and auth to consul-template, we use a custom HTTP dialer which is passed to consul-template when setting up the runner. This method follows Vault implementation. Co-authored-by:
Michael Schurter <mschurter@hashicorp.com>
-
Seth Hoenig authored
Fixup this test to handle cgroups v2, as well as the :misc: cgroup
-
Jasmine Dahilig authored
-
Jasmine Dahilig authored
-
Luiz Aoqui authored
-
James Rasell authored
-
James Rasell authored
-
claire labry authored
-
Derek Strickland authored
-
Phil Renaud authored
-
Benjamin Buzbee authored
The only difference is DefaultTransport sets DisableKeepAlives This doesn't make much sense to me - every http connection from the nomad client goes to the same NOMAD_ADDR so it's a great case for keep alive. Except round robin DNS and anycast perhaps. Consul does this already https://github.com/hashicorp/consul/blob/1e47e3c82b6eb937baab0688a67cf7ef334ce42c/api/api.go#L397
-
Jorge Marey authored
-
Derek Strickland authored
disconnected clients: Feature branch merge
-
Derek Strickland authored
* allocrunner: Remove Shutdown call in Reconnect * Node.UpdateAlloc: Stop orphaned allocs. * reconciler: Stop failed reconnects. * Apply feedback from code review. Handle rebase conflict. * Apply suggestions from code review Co-authored-by:
Tim Gross <tgross@hashicorp.com>
-
James Rasell authored
cli: fixup service test delete by using atomic actions.
-
Mike Nomitch authored
Co-authored-by:
Derek Strickland <1111455+DerekStrickland@users.noreply.github.com>
-
Phil Renaud authored
Copy change, simplifies explanation for no related eval chart
-
James Rasell authored
-
Luiz Aoqui authored
-
- 05 Apr, 2022 8 commits
-
-
Seth Hoenig authored
raw_exec: make raw exec driver work with cgroups v2
-
Derek Strickland authored
* TaskGroup: Validate that max_client_disconnect and stop_after_client_disconnect are mutually exclusive.
-
Tim Gross authored
-
Derek Strickland authored
* structs: Add alloc.Expired & alloc.Reconnected functions. Add Reconnect eval trigger by. * node_endpoint: Emit new eval for reconnecting unknown allocs. * filterByTainted: handle 2 phase commit filtering rules. * reconciler: Append AllocState on disconnect. Logic updates from testing and 2 phase reconnects. * allocs: Set reconnect timestamp. Destroy if not DesiredStatusRun. Watch for unknown status.
-
Derek Strickland authored
* comments: update some stale comments referencing deprecated config name
-
Derek Strickland authored
-
Derek Strickland authored
-
Derek Strickland authored
* planner: expose ServerMeetsMinimumVersion via Planner interface * filterByTainted: add flag indicating disconnect support * allocReconciler: accept and pass disconnect support flag * tests: update dependent tests
-