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.
- 09 May, 2019 9 commits
-
-
Mahmood Ali authored
Adds nomad exec support in our API, by hitting the websocket endpoint. We introduce API structs that correspond to the drivers streaming exec structs. For creating the websocket connection, we reuse the transport setting from api http client.
-
Mahmood Ali authored
-
Mahmood Ali authored
Add consolidated testing package to serve as conformance tests for all drivers.
-
Mahmood Ali authored
-
Mahmood Ali authored
This adds a websocket endpoint for handling `nomad exec`. The endpoint is a websocket interface, as we require a bi-directional streaming (to handle both input and output), which is not very appropriate for plain HTTP 1.0. Using websocket makes implementing the web ui a bit simpler. I considered using golang http hijack capability to treat http request as a plain connection, but the web interface would be too complicated potentially. Furthermore, the API endpoint operates against the raw core nomad exec streaming datastructures, defined in protobuf, with json serializer. Our APIs use json interfaces in general, and protobuf generates json friendly golang structs. Reusing the structs here simplify interface and reduce conversion overhead.
-
Mahmood Ali authored
-
Mahmood Ali authored
Add a client streaming RPC endpoint for processing nomad exec tasks, by invoking the relevant task handler for execution.
-
Mahmood Ali authored
-
Mahmood Ali authored
Also add a helper that converts the adapts the high level interface to the low-level interface of nomad exec interfaces.
-
- 30 Apr, 2019 10 commits
-
-
Mahmood Ali authored
In this commit, we add two driver interfaces for supporting `nomad exec` invocation: * A high level `ExecTaskStreamingDriver`, that operates on io reader/writers. Drivers should prefer using this interface * A low level `ExecTaskStreamingRawDriver` that operates on the raw stream of input structs; useful when a driver delegates handling to driver backend (e.g. across RPC/grpc). The interfaces are optional for a driver, as `nomad exec` support is opt-in. Existing drivers continue to compile without exec support, until their maintainer add such support. Furthermore, we create protobuf structures to represent exec stream entities: `ExecTaskStreamingRequest` and `ExecTaskStreamingResponse`. We aim to reuse the protobuf generated code as much as possible, without translation to avoid conversion overhead. `ExecTaskStream` abstract fetching and sending stream entities. It's influenced by the grpc bi-directional stream interface, to avoid ne...
-
Mahmood Ali authored
This adds `alloc-exec` capability to allow operator to execute command into a running task. Furthermore, it adds `alloc-node-exec` capability, required when the alloc task is raw_exec or a driver with no FSIsolation.
-
Mahmood Ali authored
Extract command parsing and execution mocking into a separate struct. Also, allow mocking of different fs_isolation for testing.
-
Mahmood Ali authored
Test helper that allows registration of jobs when ACL is activated.
-
Mahmood Ali authored
This helper returns the token as well as the ACL policy, to be used in a later commit for logging the token info associated with nomad exec invocation.
-
Charlie Voiselle authored
Fixed typo
-
Mahmood Ali authored
-
Danielle authored
Update CHANGELOG and version.go to reflect 0.9.1/0.9.2 split
-
Danielle Lancashire authored
-
Justin Weissig authored
Fixed typo: "dots wil be"/"dots will be".
-
- 29 Apr, 2019 5 commits
-
-
Yishan Lin authored
yishan/revised readme
-
Yishan Lin authored
-
Preetha Appan authored
-
Danielle authored
Fixed Typo
-
Justin Weissig authored
Fixed typo: scheduilng/scheduling.
-
- 28 Apr, 2019 3 commits
-
-
Mahmood Ali authored
divest /api from rest of nomad internal packages
-
Mahmood Ali authored
The API package needs to be independent from rest of nomad packages, to avoid leaking internal packages and dependencies (e.g. raft, ugorji, etc)
-
Mahmood Ali authored
-
- 26 Apr, 2019 13 commits
-
-
Lang Martin authored
-
Yishan Lin authored
-
Yishan Lin authored
-
Yishan Lin authored
-
Yishan Lin authored
-
Yishan Lin authored
-
Yishan Lin authored
-
Lang Martin authored
client fingerprinter doesn't overwrite manual configuration
-
Mahmood Ali authored
drivers/docker: Support volumes field in Windows
-
Danielle authored
Docs for `nomad alloc signal`
-
Danielle authored
allocs: Add nomad alloc signal command
-
Danielle Lancashire authored
-
Mahmood Ali authored
logmon: recover from shutting down call locally
-