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.
- 01 Apr, 2021 8 commits
-
-
Luiz Aoqui authored
docs: add Autoscaler CLI flags for policy eval configuration
-
Tim Gross authored
In order to support new node RPCs, we need to fingerprint plugin capabilities in more detail. This changeset mirrors recent work to fingerprint controller capabilities, but is not yet in use by any Nomad RPC.
-
Buck Doyle authored
This adds UI support for receiving the one-time token passed via query parameter, as in #10134 and related PRs, and exchanging it for its corresponding secret ID. When this works, it’s mostly invisible, with a brief flash of the OTT onscreen. The authentication failure message now suggests the -authenticate flag. When OTT exchange fails, it shows a whole-page error. This includes a known UX shortcoming in that the OTT will not disappear from the URL when an identifier is specified on the command line, like nomad ui -authenticate jobname. The goal is to address that shortcoming in a forthcoming pull request.
-
Tim Gross authored
-
James Rasell authored
-
James Rasell authored
docs: add autoscaling docs to detail node selector strategy feat.
-
Tim Gross authored
-
James Rasell authored
-
- 31 Mar, 2021 25 commits
-
-
Michael Lange authored
UI: Refactor all displayed units to use common utils (featuring bigger suffixes)
-
Tim Gross authored
-
Tim Gross authored
Add new commands for creating, deleting, and listing external storage volumes. Includes HCL decoding update for volume spec so that we can humanize capacity bytes input values.
-
Tim Gross authored
The HTTP test to create CSI volumes depends on having a controller plugin to talk to, but the test was using a node-only plugin, which allows it to silently ignore the missing controller.
-
Tim Gross authored
In order to support new controller RPCs, we need to fingerprint volume capabilities in more detail and perform controller RPCs only when the specific capability is present. This fixes a bug in Ceph support where the plugin can only suport create/delete but we assume that it also supports attach/detach.
-
Tim Gross authored
The CSI specification requires that we validate a list of `Capability` (access mode + accessibility) when we create volume, but the existing volume registration workflow incorrectly validates a single capability. The specific capability required by a volume claim is checked at the time we make the claim, so remove the check for `AttachmentMode`/`AcccessMode`.
-
Tim Gross authored
-
Tim Gross authored
This commit implements the RPC handlers on the client that talk to the CSI plugins on that client for the Create/Delete/List RPC.
-
Tim Gross authored
This commit includes a new test client that allows overriding the RPC protocols. Only the RPCs that are passed in are registered, which lets you implement a mock RPC in the server tests. This commit includes an example of this for the ClientCSI RPC server.
-
Tim Gross authored
Note that unset proto fields for volume create should be nil. The CSI spec handles empty fields and nil fields in the protobuf differently, which may result in validation failures for creating volumes with no prior source (and does in testing with the AWS EBS plugin). Refactor the `CreateVolumeRequest` mapping to the protobuf in the plugin client to avoid this bug.
-
Tim Gross authored
-
Tim Gross authored
The test assertion that we don't have a delete future remaining races with the code its testing, because the removal of the image and the removal of the future are not atomic. Move this assertion into a `WaitForResult` to avoid test flakes which we're seeing on CI on Windows in particular.
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
Consolidates all the bytes and hertz units logic in one place.
-
zhsj authored
includes updates for breaking changes in runc v1.0.0-rc93
-
Drew Bailey authored
* add a license docs page * license reference docs * update wording * use new docs-nav * rm file held over from rebase, fix path
-
Mahmood Ali authored
Memory oversubscription
-
Bryce Kalow authored
-
Mahmood Ali authored
-
Mahmood Ali authored
-
- 30 Mar, 2021 7 commits
-
-
Mahmood Ali authored
Linux offers soft memory limit: https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/memory.html#soft-limits , and https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html?highlight=memory.low . We can set soft memory limits through libcontainer `Resources.MemoryReservation`: https://pkg.go.dev/github.com/opencontainers/runc@v0.1.1/libcontainer/configs#Resources
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
Use the MemoryMaxMB as the LinuxResources limit. This is intended to ease drivers implementation and adoption of the features: drivers that use `resources.LinuxResources.MemoryLimitBytes` don't need to be updated. Drivers that use NomadResources will need to updated to track the new field value. Given that tasks aren't guaranteed to use up the excess memory limit, this is a reasonable compromise.
-
Mahmood Ali authored
Allow specifying the `memory_max` field in HCL under the resources block. Though HCLv1 is deprecated, I've updated them to ease our testing.
-
Mahmood Ali authored
This commit updates the API to pass the MemoryMaxMB field, and the CLI to show the max set for the task. Also, start parsing the MemoryMaxMB in hcl2, as it's set by tags. A sample CLI output; note the additional `Max: ` for "task": ``` $ nomad alloc status 96fbeb0b ID = 96fbeb0b-a0b3-aa95-62bf-b8a39492fd5c [...] Task "cgroup-fetcher" is "running" Task Resources CPU Memory Disk Addresses 0/500 MHz 32 MiB/20 MiB 300 MiB Task Events: [...] Task "task" is "running" Task Resources CPU Memory Disk Addresses 0/500 MHz 176 KiB/20 MiB 300 MiB Max: 30 MiB Task Events: [...] ```
-