Commit Graph

281 Commits

Author SHA1 Message Date
Alex Dadgar
e34902ae8a Large refactor of task runner and Vault token rehandling 2016-10-18 11:24:20 -07:00
Ben Barnard
ce94317d00 Replace "the the" with "the" in documentation and comments 2016-10-11 15:31:40 -04:00
Diptanu Choudhury
44be9eb0c3 Not setting a drained node as preferred node (#1740) 2016-09-23 21:15:50 -07:00
Diptanu Choudhury
7297bf1c1b Added logic to ensure scheduler knows job defn has been updated when ephemeral disks has been updated (#1725) 2016-09-21 14:00:02 -07:00
Alex Dadgar
c3fb00cf6a tasks updated 2016-09-21 11:31:09 -07:00
Diptanu Choudhury
58e5282378 Fixed the logic of calculating queued allocation in sys sched (#1724) 2016-09-20 12:05:19 -07:00
Alex Dadgar
60e114a997 Merge pull request #1715 from hashicorp/b-dead-system-nodes
Fix bug where dead nodes weren't properly handled by system scheduler
2016-09-19 11:49:44 -07:00
Alex Dadgar
926f5ee004 Fix bug in which dead nodes weren't being properly handled by system scheduler 2016-09-19 11:49:27 -07:00
Diptanu Choudhury
396e45629b Renaming LocalDisk to EphemeralDisk (#1710)
Renaming LocalDisk to EphemeralDisk
2016-09-14 15:43:42 -07:00
Diptanu Choudhury
c659e43f1c Added some more comments 2016-08-31 14:06:31 -07:00
Diptanu Choudhury
a6e0077f72 Implemented SetPrefferingNodes in stack 2016-08-30 16:17:50 -07:00
Diptanu Choudhury
e331186ee0 Introducing shared resources in alloc 2016-08-29 13:49:25 -07:00
Diptanu Choudhury
8e76a3d52a Ensuring resources are re-calculated properly in fsm 2016-08-26 20:13:11 -07:00
Diptanu Choudhury
c9d35e4050 Changing implementation of AllocsFit 2016-08-26 17:28:29 -05:00
Diptanu Choudhury
0319d5fe64 Added scheduler tests to ensure disk constraints are honored 2016-08-25 15:31:56 -05:00
Diptanu Choudhury
1adfb15f7e Fixed some tests 2016-08-25 13:56:39 -05:00
Diptanu Choudhury
7da66e169c Making the scheduler use LocalDisk instead of Resources.DiskMB 2016-08-25 12:27:42 -05:00
Diptanu Choudhury
bcab2eb523 Added the chained alloc for system scheduler 2016-08-16 10:49:45 -07:00
Diptanu Choudhury
a6b88d7a50 Marking an allocation chained if we are creating this to replace an old one 2016-08-15 17:52:41 -07:00
Alex Dadgar
bc0e60ddb9 Plan on system scheduler doesn't count nodes who don't meet constraints 2016-08-11 15:26:25 -07:00
Diptanu Choudhury
928bfc6a1e Ensuring system sched doesn't increment queued count when nodes are filtered 2016-08-10 14:33:13 -07:00
Diptanu Choudhury
de4a098d7d Added scheduler tests 2016-08-09 14:52:25 -07:00
Diptanu Choudhury
2acd622891 Marking allocations which are not terminal and are on down nodes as lost 2016-08-09 13:11:58 -07:00
Alex Dadgar
6b2e9ea4e1 test sched doesn't mark complete as lost + core_sched tests 2016-08-04 11:24:17 -07:00
Alex Dadgar
3ec1f75d09 Make scheduler mark allocations as lost 2016-08-03 15:57:46 -07:00
Alex Dadgar
7ccf55caf0 KillTimeout can be modified in place 2016-08-01 20:19:12 -07:00
Alex Dadgar
1fcd593934 fix filter logic 2016-07-28 15:57:56 -07:00
Alex Dadgar
6272c1cecd Merge pull request #1471 from hashicorp/b-handle-old-batch-allocs
filterCompleteAllocs filters replaced batch allocs
2016-07-28 14:31:19 -07:00
Diptanu Choudhury
114245bbf8 Updated tests and added logic to system sched 2016-07-28 14:02:50 -07:00
Diptanu Choudhury
d86980e9b8 fixed a comment 2016-07-28 12:22:44 -07:00
Diptanu Choudhury
5d0af5d595 Setting the queued count as zero if there is nothing to place 2016-07-28 12:13:35 -07:00
Diptanu Choudhury
dd958816f0 Added a test 2016-07-27 17:49:53 -07:00
Alex Dadgar
23414a56d8 filterCompleteAllocs filters replaced batch allocs 2016-07-27 11:54:55 -07:00
Diptanu Choudhury
64a944c7ff Making the queued allocations bind late 2016-07-25 22:11:11 -07:00
Diptanu Choudhury
a9c995b0c7 Added a test for adjustQueuedAllocations 2016-07-25 17:31:40 -07:00
Diptanu Choudhury
ddf10e106a Initializing the queued allocations late 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
73c6fbb087 Added a test to ensure we record the queued allocations correctly when the plan made partial progress 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
230a59ca16 Fixed some more tests 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
fb3b1095ba Added a test to ensure failed batch allocations are being added to the number of queued allocations 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
46907a1208 Added a test to ensure system scheduler records the correct number of queued allocations 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
e9d8e10678 Added some more tests 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
5e86e9a829 Review comments 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
03c6692f98 Fixed some bugs 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
5b2f2ee6c5 Not setting the desired and client status of an allocation during in-place updates 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
7497403042 Fixed the logic for decrementing the count of queued based on plan result 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
bac783a81e Setting the number of queued allocations per task group 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
42ba68a201 Removing the queued state of Job Summary and alloc desired status false 2016-07-13 13:20:46 -06:00
Alex Dadgar
5468a74d4e test for max plan 2016-06-20 17:56:49 -07:00
Alex Dadgar
1ea4205295 Handle max plans 2016-06-20 17:43:02 -07:00
Sean Chittenden
4bb6309fd3 Misc typos 2016-06-16 16:17:17 -07:00