Commit Graph

436 Commits

Author SHA1 Message Date
Alex Dadgar
05d183bbab Fix lost handling of not actually down nodes 2018-03-30 14:17:41 -07:00
Preetha Appan
2ba965fa7a rename skip->ignore and improve comment formatting 2018-03-29 15:11:10 -05:00
Preetha Appan
fc50ab930f Refactored for readability, pair programmed with @dadgar 2018-03-29 13:28:37 -05:00
Preetha Appan
fefbdd3178 Filter out allocs with DesiredState = stop, and unit tests 2018-03-29 09:28:52 -05:00
Alex Dadgar
3099ef05e2 Unmark drain when nodes hit their deadline and only batch/system left and add all job type integration test 2018-03-28 17:25:58 -07:00
Preetha Appan
501b0ee7ce Fix linting 2018-03-28 12:26:28 -05:00
Alex Dadgar
95c3c637ba Correct status desc on draining system allocs 2018-03-26 17:54:46 -07:00
Preetha Appan
e2226ca2b7 s/linear/constant/g 2018-03-26 14:45:09 -05:00
Preetha
ce34e73864 Merge pull request #4037 from hashicorp/b-fix-terminal-filtering-service-allocs
Fix edge case in reconciler
2018-03-26 13:14:51 -05:00
Preetha Appan
e50ef09421 one field per line in struct definition 2018-03-26 13:13:21 -05:00
Alex Dadgar
f9e9b791c7 name and test 2018-03-26 11:06:21 -07:00
Alex Dadgar
7ce09fff59 Don't create unnecessary deployments 2018-03-23 16:55:21 -07:00
Preetha Appan
f401044600 Fix edge case in reconciler where service jobs with ClientstatusComplete were not replaced 2018-03-23 18:41:00 -05:00
Alex Dadgar
9c8203a5a4 Do not mark an allocation as an inplace update if specification hasn't changed 2018-03-23 14:36:05 -07:00
Michael Schurter
aab1fb7672 Fix linting errors 2018-03-21 16:51:45 -07:00
Alex Dadgar
45e7e88558 Fix deadline handling 2018-03-21 16:51:44 -07:00
Michael Schurter
a466f97cba scheduler: migrate non-terminal migrating allocs
filterByTainted node should always migrate non-terminal migrating allocs
2018-03-21 16:49:48 -07:00
Michael Schurter
832b1d5694 switch to new raft DesiredTransition message 2018-03-21 16:49:48 -07:00
Alex Dadgar
48d637dad1 RPC, FSM, State Store for marking DesiredTransistion
fix build tag
2018-03-21 16:49:48 -07:00
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