Commit Graph

417 Commits

Author SHA1 Message Date
Michael Schurter
95b3b6eb02 drain: initial drainv2 structs and impl 2018-03-21 16:49:48 -07:00
Chelsea Holland Komlo
89ffc9602d fix up scheduling test 2018-03-21 15:54:03 -04:00
Chelsea Holland Komlo
06a306e460 improve comments; update watchDriver 2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
8597da0c5d simplify logic
bump log level
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
240fee4848 fix up codereview feedback 2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
70bebd1eed fix up scheduler mocks 2018-03-21 15:15:25 -04:00
Chelsea Holland Komlo
9ec5a93bc1 fix scheduler driver name; create node structs file 2018-03-21 15:15:25 -04:00
Chelsea Holland Komlo
a340baddf1 allow nomad to schedule based on the status of a client driver health check
Slight updates for go style
2018-03-21 15:15:25 -04:00
Preetha Appan
b1fd173c13 Fix linting warning 2018-03-14 16:12:22 -05:00
Preetha Appan
d4056c4489 Rename DelayCeiling to MaxDelay 2018-03-14 16:10:32 -05:00
Preetha Appan
854ae91ae2 Address more code review feedback 2018-03-14 16:10:32 -05:00
Preetha Appan
abeab12b9e Get reschedule policy from the alloc directly 2018-03-14 16:10:32 -05:00
Preetha Appan
8736b9f068 Update comment about WaitTime 2018-03-14 16:10:32 -05:00
Preetha Appan
e80d0d8156 Cleaner handling of batched evals 2018-03-14 16:10:32 -05:00
Preetha Appan
e5e2ec5a2f More small review feedback 2018-03-14 16:10:32 -05:00
Preetha Appan
3eebacb53e Remove unnecessary check against 5 second window for determining immediate scheduling eligibility 2018-03-14 16:10:32 -05:00
Preetha Appan
9628454d7a Scheduler and Reconciler changes to support delayed rescheduling 2018-03-14 16:10:32 -05:00
Josh Soref
f5b828248c spelling: system 2018-03-11 19:01:19 +00:00
Josh Soref
eb8ebcdf89 spelling: strategy 2018-03-11 18:58:19 +00:00
Josh Soref
0cc21f8c57 spelling: reschedulable 2018-03-11 18:48:12 +00:00
Josh Soref
692913095b spelling: feasibility 2018-03-11 18:07:09 +00:00
Josh Soref
95662c4cb0 spelling: corresponding 2018-03-11 17:51:41 +00:00
Josh Soref
a3a4bdb9ae spelling: commits 2018-03-11 17:47:45 +00:00
Preetha Appan
24c04d67d5 Fixes bug in reconciler where previously rescheduled allocs are rescheduled again. Simplified logic and added test case to catch this. 2018-02-20 12:07:56 -06:00
Preetha Appan
a952d4a72d Clarify comment 2018-02-05 16:37:07 -06:00
Preetha Appan
87d0523d55 Reconciler should consider failed allocs when marking deployment as failed. 2018-02-02 19:40:25 -06:00
Preetha Appan
d09bad7909 code review feedback 2018-01-31 09:58:05 -06:00
Preetha Appan
7917c908b4 Add a field to track the next allocation during a replacement 2018-01-31 09:58:05 -06:00
Preetha Appan
765679f7c9 Track previous node id correctly, plus unit test 2018-01-31 09:58:05 -06:00
Preetha Appan
a2cdb5d6c0 Add more clarification in comment 2018-01-31 09:58:05 -06:00
Preetha Appan
0e5d18bb8c Preallocate slice for skipped nodes 2018-01-31 09:58:05 -06:00
Preetha Appan
8d1395ea16 Better score threshold 2018-01-31 09:58:05 -06:00
Preetha Appan
ed77599afc Add one more unit test 2018-01-31 09:58:05 -06:00
Preetha Appan
3429dfa716 Limit iterator uses a score threshold and a maxSkip value to be able to skip lower scoring nodes 2018-01-31 09:58:05 -06:00
Preetha Appan
aa1af00fbd Beef up unit test for rescheduling batch jobs 2018-01-31 09:56:53 -06:00
Preetha Appan
a49ad471f9 Address more code review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
c5f81b426f Make sure that reschedule trackers are not added for node drain replacements 2018-01-31 09:56:53 -06:00
Preetha Appan
0b6846873b Improve reconciler unit tests 2018-01-31 09:56:53 -06:00
Preetha Appan
4cbef07d37 Prevent side effect modification of select options when preferred nodes are set 2018-01-31 09:56:53 -06:00
Preetha Appan
c6c0741bd8 Add helper methods, use require and other code review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
d96873c827 Reconile with changes to structs for reschedule tracking 2018-01-31 09:56:53 -06:00
Preetha Appan
cc54e11802 Fix some comments and lint warnings, remove unused method 2018-01-31 09:56:53 -06:00
Preetha Appan
5ecb7895bb Reschedule previous allocs and track their reschedule attempts 2018-01-31 09:56:53 -06:00
Preetha Appan
64e9cf9733 Add a field to track the next allocation during a replacement 2018-01-24 17:55:05 -06:00
Alex Dadgar
73303b4b44 gofmt 2018-01-04 14:45:15 -08:00
Alex Dadgar
28aa6e1acd Fix detection of successful batch allocations
This PR restores older behavior of detecting successful batch
allocations (04d86ffd10). This has the
side effect that we correctly filter desired status stop but not
successful batch allocations and create their replacements.
2018-01-04 14:20:32 -08:00
Preetha
781408bbf4 Merge branch 'master' into 0.8 2018-01-03 16:06:38 -06:00
Preetha Appan
aa35b5b9f2 Return an error if evaluation doesn't exist in state store at plan apply time. 2017-12-18 14:55:36 -06:00
Preetha Appan
f12255e886 Update eval modify index as part of plan apply. 2017-12-18 10:03:55 -06:00
Preetha Appan
ef1a2e94f7 Fix some typos 2017-12-14 13:29:27 -06:00