Alex Dadgar
741a71e0b3
Fix tests
2017-05-01 13:54:26 -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
336a976205
Fix in-place update
2017-03-09 22:03:10 -08:00
Alex Dadgar
cab1a8da95
Feedback addressed
2017-03-09 21:36:27 -08:00
Alex Dadgar
ddb9292424
Fix filtering issue and add a test that would catch it
2017-03-09 16:20:39 -08:00
Alex Dadgar
e4954a48c2
Refactor
2017-03-09 15:26:46 -08:00
Alex Dadgar
653a1c37f6
Split distinct property and host iterator and add iterator to system stack
2017-03-08 19:00:10 -08:00
Alex Dadgar
868cbe13a2
cleanup
2017-03-08 17:57:31 -08:00
Alex Dadgar
fdc4309374
Property Set
2017-03-08 17:50:40 -08:00
Alex Dadgar
86b0304fc2
Unoptimized implementation + testing
2017-03-07 14:48:54 -08:00
Alex Dadgar
e2ee3f4904
Double the anti-affinity for placing same task group on node
2017-03-06 11:52:53 -08:00
Alex Dadgar
07f7e19578
Fix vet script and fix vet problems
...
This PR fixes our vet script and fixes all the missed vet changes.
It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00
Alex Dadgar
43ab32f96c
Tests compile
2017-02-07 21:30:57 -08:00
Alex Dadgar
5b75b29af4
Nomad builds
2017-02-07 20:31:23 -08:00
Alex Dadgar
0296011d8c
Fix adjust test
2017-01-08 14:14:35 -08:00
Alex Dadgar
52a1acd611
Detect newly created allocation's properly
2017-01-08 13:55:03 -08:00
Alex Dadgar
248c069652
Merge pull request #2128 from hashicorp/f-dispatch
...
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Diptanu Choudhury
a709731258
Updated changelog and fixed tests
2016-12-20 11:32:17 -08:00
Alex Dadgar
e80cecf58b
Scheduler combines meta from job > group > task
2016-12-15 17:08:38 -08:00
Diptanu Choudhury
5eb4e8adb3
Making the status command return the allocs of currently registered job
2016-11-24 16:31:30 +01:00
Alex Dadgar
962f4d4fe6
Add scheduler version enforcement
2016-10-26 14:52:48 -07:00
Alex Dadgar
c97711ef34
Add set contains
2016-10-19 13:06:28 -07: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
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