Commit Graph

82 Commits

Author SHA1 Message Date
Alex Dadgar
a9e3a41407 Enable more linters 2017-09-26 15:26:33 -07:00
Alex Dadgar
83fb59969d Stop before trying to place 2017-07-17 17:18:12 -07:00
Alex Dadgar
989aa56304 Remove canary 2017-07-07 12:10:04 -07:00
Alex Dadgar
690fc78091 Plan apply handles canaries and success is set via update 2017-07-07 12:10:04 -07:00
Alex Dadgar
29e31af007 Attach eval id 2017-07-07 12:10:04 -07:00
Alex Dadgar
0ec6d74338 update description of the alloc update factory function 2017-07-07 12:03:11 -07:00
Alex Dadgar
f32a9a5539 Non-Canary/Deployment Tests 2017-07-07 12:03:11 -07:00
Alex Dadgar
d72b270a51 Pull out in-place updating into a passed in function; reduce inputs to reconciler 2017-07-07 12:03:11 -07:00
Alex Dadgar
019bb3ae58 Respond to review comments 2017-04-19 10:54:03 -07:00
Alex Dadgar
950171f094 non-purge deregisters 2017-04-15 17:08:05 -07:00
Alex Dadgar
eb675eb82d Skip inplace update on terminal batch allocation
This PR skips adding an inplace update to a successfully terminal batch
job to the plan. This avoids extra data in the plan and avoids
triggering updates on all clients that have the terminal allocation.
This is matching behavior of the service scheduler.

/cc @armon for review
2017-03-11 17:19:22 -08:00
Alex Dadgar
fdc4309374 Property Set 2017-03-08 17:50:40 -08:00
Alex Dadgar
5b75b29af4 Nomad builds 2017-02-07 20:31:23 -08:00
Alex Dadgar
52a1acd611 Detect newly created allocation's properly 2017-01-08 13:55:03 -08:00
Alex Dadgar
e80cecf58b Scheduler combines meta from job > group > task 2016-12-15 17:08:38 -08:00
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
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
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
7da66e169c Making the scheduler use LocalDisk instead of Resources.DiskMB 2016-08-25 12:27:42 -05: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
3ec1f75d09 Make scheduler mark allocations as lost 2016-08-03 15:57:46 -07:00
Diptanu Choudhury
230a59ca16 Fixed some more tests 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
bac783a81e Setting the number of queued allocations per task group 2016-07-25 17:26:38 -07:00
Sean Chittenden
4bb6309fd3 Misc typos 2016-06-16 16:17:17 -07:00
Sean Chittenden
3e95ca61ef Per-comment, remove structs.Allocation's Services attribute.
Nuke PopulateServiceIDs() now that it's also no longer needed.
2016-06-10 15:54:39 -04:00
Alex Dadgar
f47d341c4e Blocked evals don't store TG alloc metrics 2016-05-27 11:26:14 -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
d5fa76ec21 comment 2016-05-24 18:18:10 -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
691efe13df Dont restart successfully finished batch allocations 2016-05-24 17:23:18 -07:00
Alex Dadgar
6deadf1ccd Evals track blocked evals they create 2016-05-19 13:09:52 -07:00
Alex Dadgar
c37e48e723 inplaceUpdate returns the allocs that were updated in-place 2016-05-17 15:37:37 -07:00
Alex Dadgar
693059bd93 Fixes 2016-05-13 11:53:11 -07:00
Alex Dadgar
0e26f62707 Merge branch 'master' into f-plan-endpoint 2016-05-11 15:39:36 -07:00
Alex Dadgar
7f7a01df9c Fix switching diff structures 2016-05-11 15:36:28 -07:00
Alex Dadgar
5377f337b8 Check if network asks have changed when checking task updates 2016-05-05 21:32:01 -07:00
Alex Dadgar
1303a4365a Initial plan endpoint implementation - WIP 2016-05-05 11:21:58 -07:00
Alex Dadgar
7c5d73916f Task is not eligible for update if User, Meta, or Resources change 2016-04-25 17:20:25 -07:00
Alex Dadgar
a71540a27a evict and replace when the artifacts of a task change 2016-03-15 19:32:49 -07:00
Alex Dadgar
ff48998942 Avoid serializes Allocation.Resources 2016-03-01 14:09:25 -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