Commit Graph

186 Commits

Author SHA1 Message Date
Alex Dadgar
ff48998942 Avoid serializes Allocation.Resources 2016-03-01 14:09:25 -08:00
Alex Dadgar
17f065d548 Merge pull request #848 from hashicorp/b-server-panic
core: store the job on allocations that are from stopped jobs
2016-02-24 17:27:22 -08:00
Alex Dadgar
589be0312f Generic Scheduler handles periodic eval type 2016-02-24 16:20:33 -08:00
Alex Dadgar
e66238e6ea Store the job on allocations that are from stopped jobs 2016-02-24 14:50:59 -08:00
Alex Dadgar
62e723b15f Revert "err logs in worker and scheduler"
This reverts commit 7befc58652.
2016-02-22 22:23:57 -08:00
Alex Dadgar
7befc58652 err logs in worker and scheduler 2016-02-22 14:47:59 -08:00
Alex Dadgar
d48ee01bd2 format 2016-02-22 13:24:26 -08:00
Armon Dadgar
c6fa4d1181 nomad: add a sanity check guard 2016-02-22 12:15:40 -08:00
Alex Dadgar
2a11511f2d Fix progressMade in scheduler 2016-02-22 10:38:04 -08:00
Armon Dadgar
790725d739 schedule: deduplicate the jobs 2016-02-21 11:32:56 -08:00
Armon Dadgar
260c9e2890 nomad: make PopulateServiceIDs more efficient 2016-02-21 11:15:00 -08:00
Alex Dadgar
2ed5d34035 Merge pull request #823 from hashicorp/f-bitmap
Switch port collision checking to use bitmap instead of map
2016-02-20 16:02:48 -08:00
Armon Dadgar
f1c7e27394 nomad: cache bitmaps to avoid GC pressure 2016-02-20 12:18:22 -08:00
Armon Dadgar
bc9423e61b scheduler: Use AllocsByNodeTerminal to avoid filtering 2016-02-20 11:29:15 -08:00
Alex Dadgar
73733a8542 Fixes 2016-02-19 15:49:32 -08:00
Alex Dadgar
78d825f56b resolveConstraintTargets checks for bracket syntax 2016-02-16 10:03:04 -08:00
Alex Dadgar
c3a2bf267a go vet 2016-02-12 16:08:58 -08:00
Alex Dadgar
13d1fd0730 Only set eligibility if the eval hasn't escaped 2016-02-11 09:45:27 -08:00
Alex Dadgar
cc0ad87230 Reset retry count if progress is made and fail by creating a blocked eval 2016-02-09 21:24:47 -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
f9fb2ef3f8 Fix node drain 2016-02-03 12:00:43 -08:00
Alex Dadgar
8bf58d5292 Only replace batch allocations that have failed 2016-02-02 17:40:32 -08:00
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