Preetha Appan
97cf4e1d7a
Address more minor code review feedback
2018-11-02 16:26:34 -05:00
Preetha Appan
c49a3e20c5
Fix test setup
2018-11-02 16:06:25 -05:00
Preetha Appan
1380acbf56
dereference safely
2018-11-02 15:58:59 -05:00
Preetha Appan
8235919158
Fix static port preemption to be device aware
2018-11-02 13:07:24 -05:00
Preetha Appan
0015095b57
Handle static port preemption when there are multiple devices
...
Also added test case
2018-11-02 09:09:50 -05:00
Preetha Appan
b3738a0c22
unit test plan apply with preemptions
2018-11-01 20:06:32 -05:00
Preetha Appan
35d31f8be6
more minor review feedback
2018-11-01 17:05:17 -05:00
Preetha Appan
06ad182026
Plumb alloc resource cache in a few more places.
...
also removed now unused method
2018-11-01 16:44:43 -05:00
Preetha Appan
3ad7b3fb5b
More review comments
2018-11-01 16:36:11 -05:00
Preetha Appan
993b6a272a
Cleaner way to exit early, and fixed a couple more places reading from alloc.Resources
2018-11-01 16:15:58 -05:00
Preetha Appan
22d156f5a0
review comments
2018-11-01 12:01:59 -05:00
Preetha Appan
f2b027797b
Fix return type in tests after refactor
2018-10-30 11:10:46 -05:00
Preetha Appan
17344a7f3a
Introduce interface with multiple implementations for resource distance
2018-10-30 11:06:32 -05:00
Preetha Appan
88005852e3
Introduce a response object for scheduler configuration
2018-10-30 11:06:32 -05:00
Preetha Appan
35635ba39a
refactor preemption code to use method recievers and setters for common fields
2018-10-30 11:06:32 -05:00
Preetha Appan
4cc21fbcfa
more minor cleanup
2018-10-30 11:06:32 -05:00
Preetha Appan
21432d69dc
More style and readablity fixes from review
2018-10-30 11:06:32 -05:00
Preetha Appan
191b8626d2
More review comments
2018-10-30 11:06:32 -05:00
Preetha Appan
c4a04eb1b2
style fixes
2018-10-30 11:06:32 -05:00
Preetha Appan
12af2aed49
make default config a variable
2018-10-30 11:06:32 -05:00
Preetha Appan
c3b8e4f573
Add fsm layer tests
2018-10-30 11:06:32 -05:00
Preetha Appan
c4e0e66c5b
Restore/Snapshot plus unit tests for scheduler configuration
2018-10-30 11:06:32 -05:00
Preetha Appan
655689a743
Preempted allocations should be removed from proposed allocations
2018-10-30 11:06:32 -05:00
Preetha Appan
a960cced8c
comments
2018-10-30 11:06:32 -05:00
Preetha Appan
9f35923db0
fix end to end scheduler test to use new resource structs correctly
2018-10-30 11:06:32 -05:00
Preetha Appan
24b393483a
Modify preemption code to use new style of resource structs
2018-10-30 11:06:32 -05:00
Preetha Appan
6966e3c3e8
Make preemption config a struct to allow for enabling based on scheduler type
2018-10-30 11:06:32 -05:00
Preetha Appan
2143fa2ab7
Use scheduler config from state store to enable/disable preemption
2018-10-30 11:06:32 -05:00
Preetha Appan
784b96c104
Support for new scheduler config API, first use case is to disable preemption
2018-10-30 11:06:32 -05:00
Preetha Appan
51c5bae393
Fix linting
2018-10-30 11:06:32 -05:00
Preetha Appan
fd6bff2332
Fix linting and better comments
2018-10-30 11:06:32 -05:00
Preetha Appan
13e314cb56
Fix logic bug, unit test for plan apply method in state store
2018-10-30 11:06:32 -05:00
Preetha Appan
b5cbd73924
Fix comment
2018-10-30 11:06:32 -05:00
Preetha Appan
715d869499
Implement preemption for system jobs.
...
This commit implements an allocation selection algorithm for finding
allocations to preempt. It currently special cases network resource asks
from others (cpu/memory/disk/iops).
2018-10-30 11:06:32 -05:00
Preetha Appan
fc266f7987
structs and API changes to plan and alloc structs needed for preemption
2018-10-30 11:06:32 -05:00
Preetha Appan
bf7192c58d
Add number of evictions to DesiredUpdates struct to use in CLI/API
2018-10-30 11:06:32 -05:00
Preetha Appan
8004160304
REview feedback
2018-10-30 11:06:32 -05:00
Preetha Appan
5f27e0010d
structs and API changes to plan and alloc structs needed for preemption
2018-10-30 11:06:32 -05:00
Nick Ethier
4b08ef0534
Merge pull request #4765 from jippi/increase-line-scan-limit
...
fix: increase log rotator line scan limit
2018-10-29 18:46:30 -07:00
Nick Ethier
da7563b8c3
Merge pull request #4795 from hashicorp/f-plugin-config
...
Pass client configuration to plugins through loader
2018-10-29 18:42:27 -07:00
Nick Ethier
394cbc81b6
plugins/drivers: nil gaurd driver config when building executor config
2018-10-29 21:43:19 -04:00
Nick Ethier
95d381cff7
rename NomadConfig to ClientAgentConfig
2018-10-29 21:34:34 -04:00
Michael Schurter
16c25b8a60
Merge pull request #4803 from hashicorp/b-leader-fixes
...
AR Fixes: task leader handling, restoring, state updating, AR.Destroy deadlocks
2018-10-29 17:38:59 -05:00
Michael Schurter
0b4e15c366
tests: more fixes due to api changes
2018-10-29 15:25:22 -07:00
Michael Schurter
9d2b28e9be
tests: fix usages of TestClient cleanup and mock driver
2018-10-29 14:21:05 -07:00
Preetha
645fe97fa0
Update CHANGELOG.md
2018-10-26 19:14:13 -05:00
Preetha
7404666f07
Merge pull request #4813 from hashicorp/b-executor_path_fix
...
Stat path to binary to handle raw exec driver interpolated binary path
2018-10-26 19:09:18 -05:00
Preetha Appan
4231dc4729
Stat path to binary to handle raw exec driver interpolated binary path
2018-10-26 17:24:05 -05:00
Preetha Appan
af3a62e750
Fix test linting
2018-10-26 10:30:12 -05:00
Preetha
1809a89d0c
Merge pull request #4800 from hashicorp/f-driver-plugin-qemu
...
QEMU driver plugin
2018-10-26 09:11:56 -05:00