Commit Graph

64 Commits

Author SHA1 Message Date
Alex Dadgar
43ab32f96c Tests compile 2017-02-07 21:30:57 -08:00
Diptanu Choudhury
a709731258 Updated changelog and fixed tests 2016-12-20 11:32:17 -08:00
Diptanu Choudhury
44be9eb0c3 Not setting a drained node as preferred node (#1740) 2016-09-23 21:15:50 -07:00
Diptanu Choudhury
396e45629b Renaming LocalDisk to EphemeralDisk (#1710)
Renaming LocalDisk to EphemeralDisk
2016-09-14 15:43:42 -07:00
Diptanu Choudhury
a6e0077f72 Implemented SetPrefferingNodes in stack 2016-08-30 16:17:50 -07:00
Diptanu Choudhury
0319d5fe64 Added scheduler tests to ensure disk constraints are honored 2016-08-25 15:31:56 -05: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
Diptanu Choudhury
de4a098d7d Added scheduler tests 2016-08-09 14:52:25 -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
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
a9c995b0c7 Added a test for adjustQueuedAllocations 2016-07-25 17:31:40 -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
e9d8e10678 Added some more tests 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
230b66377b address comment 2016-05-25 10:30:47 -07:00
Alex Dadgar
08b2291313 Reuse the same evaluation and reblock it until there is no more work to do 2016-05-24 20:10:56 -07:00
Alex Dadgar
6dc9b7e1ac Merge pull request #1188 from hashicorp/f-no-failed-allocs
Failed Allocation Metrics stored in Evaluation
2016-05-24 20:06:28 -07:00
Alex Dadgar
92bddbc3a5 rename SpawnedBlockedEval and simplify map safety check 2016-05-24 18:12:59 -07:00
Alex Dadgar
4a34fe4914 Add test to verify drain doesn't restart successful batch and add to ignore list 2016-05-24 17:47:03 -07:00
Alex Dadgar
6deadf1ccd Evals track blocked evals they create 2016-05-19 13:09:52 -07:00
Alex Dadgar
96ab783b3f Scheduler no longer produces failed allocations; failed alloc metrics stored in evaluation 2016-05-18 18:11:40 -07:00
Alex Dadgar
1303a4365a Initial plan endpoint implementation - WIP 2016-05-05 11:21:58 -07:00
Alex Dadgar
2cb67f5825 Fix drained/batch allocations from continually migrating 2016-04-12 16:14:32 -07:00
Alex Dadgar
e0699c2abb Successful allocations are marked as complete instead of dead 2016-03-23 18:08:19 -07:00
Alex Dadgar
bffcf5bd9f ProposedAllocs dedups in-place updated allocations 2016-03-21 18:09:32 -07:00
Alex Dadgar
1829163002 unit-test demonstrating broken behavior 2016-03-21 16:28:47 -07:00
Alex Dadgar
e0bc33a78e Allow count zero 2016-03-17 11:02:59 -07:00
Alex Dadgar
e66238e6ea Store the job on allocations that are from stopped jobs 2016-02-24 14:50:59 -08:00
Alex Dadgar
c3a2bf267a go vet 2016-02-12 16:08:58 -08:00
Alex Dadgar
8b55fd6b70 Only interpret vars wrapped in braces 2016-02-04 17:26:46 -08:00
Alex Dadgar
d487295960 Fix computed class when the job has multiple task groups 2016-02-03 21:22:18 -08:00
Alex Dadgar
c55ea4e8ed test 2016-02-03 14:15:02 -08:00
Alex Dadgar
8bf58d5292 Only replace batch allocations that have failed 2016-02-02 17:40:32 -08:00
Alex Dadgar
1797f0e67a Make computed node class a string and add versioning 2016-01-31 18:04:45 -08:00
Alex Dadgar
672f877d8c Schedulers create blocked eval if there are failed allocations 2016-01-31 18:04:45 -08:00
Ivo Verberk
ab9409184a Shorten CLI identifiers
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Alex Dadgar
892c7ddee3 Fix bug, add tests, and cli output 2016-01-04 14:23:06 -08:00
Alex Dadgar
9d9f94cd7e Test ebug log 2015-12-23 19:44:42 -08:00
Alex Dadgar
197228121e Remove shared reference to network resources across allocs 2015-11-23 16:32:30 -08:00
Diptanu Choudhury
51e3c9928b Fixing the scheduler tests 2015-11-16 13:10:57 -08:00