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.
- 13 Sep, 2018 1 commit
-
-
Michael Schurter authored
Still more testing to do, but I want to get this panic fixed ASAP. All new tests pass with -race
-
- 11 Sep, 2018 39 commits
-
-
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
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
Updates are applied asynchronously but sequentially
-
Michael Schurter authored
-
Michael Schurter authored
Should probably be moved to an Inspect method in the Driver Plugin world
-
Michael Schurter authored
Deregistration works but difficult to test due to terminal updates not being fully implemented in the new client/ar/tr.
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
also updated comments
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Michael Schurter authored
-
Michael Schurter authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Michael Schurter authored
-
Michael Schurter authored
Restoring calls NewAR -> Restore -> Run NewAR now calls NewTR AR.Restore calls TR.Restore AR.Run calls TR.Run
-