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.
- 28 Sep, 2018 5 commits
-
-
Michael Schurter authored
"Ask forgiveness, not permission." Instead of peaking at TaskStates (which are no longer updated on the AR.Alloc() view of the world) to only read logs for running tasks, just try to read the logs and improve the error handling if they don't exist. This should make log streaming less dependent on AR/TR behavior. Also fixed a race where the log streamer could exit before reading an error. This caused no logs or errors to be displayed sometimes when an error occurred.
-
Michael Schurter authored
mock_driver wasn't behaving like other driver handles.
-
Michael Schurter authored
* GetClientAlloc() gains nothing from using allAllocs() * getAllocatedResources was calling getAllocRunners() twice
-
Michael Schurter authored
-
Michael Schurter authored
Specify that Alloc() does not return updated task states.
-
- 27 Sep, 2018 3 commits
-
-
Alex Dadgar authored
Pass plugin loaders to client and server
-
Alex Dadgar authored
-
Alex Dadgar authored
-
- 26 Sep, 2018 3 commits
-
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Nick Ethier authored
Driver plugin framework to facilitate development of driver plugins. Implementing plugins only need to implement the DriverPlugin interface. The framework proxies this interface to the go-plugin GRPC interface generated from the driver.proto spec. A testing harness is provided to allow implementing drivers to test the full lifecycle of the driver plugin. An example use: func TestMyDriver(t *testing.T) { harness := NewDriverHarness(t, &MyDiverPlugin{}) // The harness implements the DriverPlugin interface and can be used as such taskHandle, err := harness.StartTask(...) }
-
- 25 Sep, 2018 1 commit
-
-
Michael Schurter authored
From review comments on #4649 left post-merge.
-
- 24 Sep, 2018 1 commit
-
-
Nick Ethier authored
* client/executor: refactor client to remove interpolation * executor: POC libcontainer based executor * vendor: use hashicorp libcontainer fork * vendor: add libcontainer/nsenter dep * executor: updated executor interface to simplify operations * executor: implement logging pipe * logmon: new logmon plugin to manage task logs * driver/executor: use logmon for log management * executor: fix tests and windows build * executor: fix logging key names * executor: fix test failures * executor: add config field to toggle between using libcontainer and standard executors * logmon: use discover utility to discover nomad executable * executor: only call libcontainer-shim on main in linux * logmon: use seperate path configs for stdout/stderr fifos * executor: windows fixes * executor: created reusable pid stats collection utility that can be used in an executor * executor: update fifo.Open calls * executor: fix build * remove executor from...
-
- 21 Sep, 2018 1 commit
-
-
Michael Schurter authored
Tested except for the net/rpc specific error case which may need changing in the gRPC world.
-
- 18 Sep, 2018 26 commits
-
-
Michael Schurter authored
-
Michael Schurter authored
Updated to hclog. It exposed fields that required an unexported lock to access. Created a getter methodn instead. Only old allocrunner currently used this feature.
-
Michael Schurter authored
Use doneCh like @dadgar suggested in the original PR. Thoroughly test hook as concurrent Update calls make for a tricky concurrency problem.
-
Alex Dadgar authored
-
Nick Ethier authored
* fifo: add new fifo package for named pipes
-
Alex Dadgar authored
-
Nick Ethier authored
* vendor: bump libcontainer and docker to remove Sirupsen imports * vendor: fix bad vendoring of archive package * vendor: fix api changes to cgroups in executor * vendor: fix docker api changes * vendor: update github.com/Azure/go-ansiterm to use non capitalized logrus import
-
Michael Schurter authored
Still more testing to do, but I want to get this panic fixed ASAP. All new tests pass with -race
-
Michael Schurter authored
Append when there's nothing blocking between appending and sending an update to the server.
-
Michael Schurter authored
-
Michael Schurter authored
Make it match TaskRunner update hook behavior
-
Michael Schurter authored
* UpdateState: set state, append event, persist, update servers * EmitEvent: append event, persist, update servers * AppendEvent: append event, persist AppendEvent may not even have to persist, but for the sake of correctness I'm going with that for now.
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
Also remove initial alloc from broadcaster as it just caused useless extra processing.
-
Michael Schurter authored
minimize passed dependencies to ease testing
-
Michael Schurter authored
And test thoroughly.
-
Michael Schurter authored
Leaving fingerprinters in case that interface changes with plugins.
-
Michael Schurter authored
* Stopping an alloc is implemented via Updates but update hooks are *not* run. * Destroying an alloc is a best effort cleanup. * AllocRunner destroy hooks implemented. * Disk migration and blocking on a previous allocation exiting moved to its own package to avoid cycles. Now only depends on alloc broadcaster instead of also using a waitch. * AllocBroadcaster now only drops stale allocations and always keeps the latest version. * Made AllocDir safe for concurrent use Lots of internal contexts that are currently unused. Unsure if they should be used or removed.
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
Allow alloc and task runners to persist their own state when something changes instead of periodically syncing all state.
-
Michael Schurter authored
Saves a tiny bit of cpu and some IO. Sadly doesn't prevent all IO on duplicate writes as the transactions are still created and committed. $ go test -bench=. -benchmem goos: linux goarch: amd64 pkg: github.com/hashicorp/nomad/helper/boltdd BenchmarkWriteDeduplication_On-4 500 4059591 ns/op 23736 B/op 56 allocs/op BenchmarkWriteDeduplication_Off-4 300 4115319 ns/op 25942 B/op 55 allocs/op
-
Michael Schurter authored
finished but doesn't handle deleting deeply nested buckets
-
Michael Schurter authored
Still WIP as it does not handle deletions.
-
Michael Schurter authored
-