Commit Graph

362 Commits

Author SHA1 Message Date
Alex Dadgar
65b8b5295c Remove running, system scheduler, and fix tg overriding eligibility 2016-01-31 20:56:52 -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
Alex Dadgar
49238770c6 EvalEligibility unit tests and simplify escaped constraint tracking 2016-01-26 17:34:41 -08:00
Alex Dadgar
450252f8ae Respond to comments 2016-01-26 16:43:42 -08:00
Alex Dadgar
97070f44f8 Add benchmark 2016-01-26 15:16:43 -08:00
Alex Dadgar
7929ee76dc Change the unique namespace on the node 2016-01-26 15:16:43 -08:00
Alex Dadgar
0ad3575897 FeasibilityWrapper uses computed node class eligibility to call feasibility checks minimally 2016-01-26 15:16:43 -08:00
Alex Dadgar
a90c1273ed EvalEligibility in context 2016-01-26 15:16:43 -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
47fbfd3000 Add JobModifyIndex 2016-01-12 09:50:33 -08:00
Alex Dadgar
c51b69a825 Fix counts 2016-01-04 14:33:10 -08:00
Alex Dadgar
892c7ddee3 Fix bug, add tests, and cli output 2016-01-04 14:23:06 -08:00
Alex Dadgar
251bcf106f Store the available nodes in the alloc metric 2016-01-04 12:07:33 -08:00
Alex Dadgar
310789eafa Merge pull request #618 from hashicorp/f-node-class-constraint
Add node class to constraints
2015-12-28 13:27:38 -08:00
Alex Dadgar
9d9f94cd7e Test ebug log 2015-12-23 19:44:42 -08:00
Alex Dadgar
1a4c7b72ef Add node class to constraints 2015-12-21 17:15:34 -08:00
Alex Dadgar
bc13dcaf48 merge 2015-12-16 15:01:15 -08:00
Alex Dadgar
17bc13bfe5 Add garbage collection to jobs 2015-12-16 15:00:45 -08:00
Diptanu Choudhury
ed911ca011 Added a test to make sure services no longer present are being removed 2015-12-15 10:43:56 -08:00
Diptanu Choudhury
9686f6e26f Making sure existing ids for services are not re-generated 2015-12-15 09:14:32 -08:00
Diptanu Choudhury
fa5beb7fe5 Populating service ids only if allocations can be placed for system jobs 2015-12-15 08:38:18 -08:00
Diptanu Choudhury
962bdf744d Added a test to prove services are removed from the map in Alloc if they are removed from the Tasks 2015-12-15 08:35:26 -08:00
Diptanu Choudhury
cbc70a5465 Changed some comments 2015-12-14 18:05:58 -08:00
Diptanu Choudhury
f4526cd7e3 Re-initializing the service map for in place updates 2015-12-14 17:06:58 -08:00
Diptanu Choudhury
f089e249c8 Renamed serviceId to serviceID 2015-12-14 15:57:56 -08:00
Diptanu Choudhury
d4d7572604 Making the allocs hold service ids 2015-12-14 15:08:35 -08:00
Chris Hines
597194fb96 Skip unreliable time measurement assertions on Windows. 2015-12-09 14:55:57 -05:00
Alex Dadgar
7ca2bac7b4 Remove unnecessary copy 2015-11-23 16:36:12 -08:00
Alex Dadgar
197228121e Remove shared reference to network resources across allocs 2015-11-23 16:32:30 -08:00
Chris Bednarski
1d1e4bdd08 Merge branch 'master' into f-port-labels 2015-11-16 16:02:38 -08:00
Alex Dadgar
9681d09d56 Initialize task state in allocation sent by scheduler 2015-11-16 15:14:21 -08:00
Diptanu Choudhury
51e3c9928b Fixing the scheduler tests 2015-11-16 13:10:57 -08:00
Alex Dadgar
c46447a572 Remove weight and hard/soft fields from constraint 2015-10-27 14:31:14 -07:00
Alex Dadgar
8fcefe0f3d Merge pull request #321 from hashicorp/f-unique-constraint
Add "distinctHost" constraint
2015-10-26 14:18:57 -07:00
Alex Dadgar
2ab5790b6f Rename Dynamic -> ProposedAllocConstraintIterator 2015-10-26 14:12:54 -07:00
Alex Dadgar
302c989509 Cleanup DynamicConstraintIterator 2015-10-26 14:01:32 -07:00
Alex Dadgar
cccef7ac84 Constants for constraints and renaming to use undescore instead of camel 2015-10-26 13:47:56 -07:00
Alex Dadgar
0f5e93edc8 Check for environment variable updates for tasks 2015-10-23 14:52:06 -07:00
Alex Dadgar
ec78455e7f Fix markdown and log messages 2015-10-23 09:56:48 -07:00
Alex Dadgar
db90849fb1 Change "unique" to "distinctHosts" 2015-10-22 17:40:41 -07:00
Alex Dadgar
9f259c27f6 Fix test and simplify some boolean logic/fix metrics counting 2015-10-22 16:45:03 -07:00
Alex Dadgar
9572878a92 Add dynamic constraint to generic_scheduler 2015-10-22 15:09:03 -07:00
Alex Dadgar
3ae9340614 DynamicConstraintIterator that implements the unique constraint 2015-10-22 14:31:12 -07:00
Gregory Man
3c43318eb7 Make go vet happy 2015-10-21 15:47:36 +03:00
Alex Dadgar
2405101328 Remove base nodes from stack constructors 2015-10-16 17:05:23 -07:00
Alex Dadgar
927efaf4e0 Unit tests for the refactor scheduler methods 2015-10-16 16:35:55 -07:00
Alex Dadgar
7feb5f1978 Refactor task group constraint logic in generic/system stack 2015-10-16 14:00:51 -07:00
Alex Dadgar
5bbe7f67ca diffResult stores values not pointers 2015-10-16 11:43:09 -07:00
Alex Dadgar
0c5ee683e7 Add negative test to DriverIterator, increase system scheduler attempts, and fix evictAndPlace status message 2015-10-16 11:36:26 -07:00