Seth Hoenig
37cd0eced3
consul/connect: trigger update as necessary on connect changes
...
This PR fixes a long standing bug where submitting jobs with changes
to connect services would not trigger updates as expected. Previously,
service blocks were not considered as sources of destructive updates
since they could be synced with consul non-destructively. With Connect,
task group services that have changes to their connect block or to
the service port should be destructive, since the network plumbing of
the alloc is going to need updating.
Fixes #8596 #7991
Non-destructive half in #7192
2020-10-05 14:53:00 -05:00
Mahmood Ali
82cb13aac9
Detect network mode change
...
Mark job as updated if network mode changed.
2020-03-21 16:51:10 -04:00
Drew Bailey
92f0a343cb
add test for node eligibility
2020-02-03 09:02:09 -05:00
Drew Bailey
cd00d6ded5
make diffSystemAllocsForNode aware of eligibility
...
diffSystemAllocs -> diffSystemAllocsForNode, this function is only used
for diffing system allocations, but lacked awareness of eligible
nodes and the node ID that the allocation was going to be placed.
This change now ignores a change if its existing allocation is on an
ineligible node. For a new allocation, it also checks tainted and
ineligible nodes in the same function instead of nil-ing out the diff
after computation in diffSystemAllocs
2020-02-03 09:02:08 -05:00
Michael Schurter
f12bfdb193
scheduler: update tests with modern error helper
2019-12-02 20:25:52 -08:00
Drew Bailey
89964c989a
Removes checking constraints for inplace update
2019-11-19 13:34:41 -05:00
Drew Bailey
1607a203a8
Check for changes to affinity and constraints
...
Adds checks for affinity and constraint changes when determining if we
should update inplace.
refactor to check all levels at once
check for spread changes when checking inplace update
2019-11-19 08:26:34 -05:00
Chris Baker
bb964defa4
changed all tests to require from t.Fatalf
2019-11-07 22:39:47 +00:00
Chris Baker
bcd1243471
the scheduler checks whether task changes require a restart, this needed
...
to be updated to consider devices
2019-11-07 17:51:15 +00:00
Alex Dadgar
670c7e57dc
add to stack
2018-10-13 12:27:49 -07:00
Alex Dadgar
0f2f4797cb
fixing tests
2018-10-04 14:26:19 -07:00
Alex Dadgar
49c2d4f775
Scheduler uses allocated resources
2018-10-02 17:08:25 -07:00
Alex Dadgar
260b566c91
server
2018-09-15 16:23:13 -07:00
Alex Dadgar
98c7abe541
Tests only use testlog package logger
2018-06-13 15:40:56 -07:00
Alex Dadgar
05d183bbab
Fix lost handling of not actually down nodes
2018-03-30 14:17:41 -07:00
Alex Dadgar
95c3c637ba
Correct status desc on draining system allocs
2018-03-26 17:54:46 -07:00
Michael Schurter
832b1d5694
switch to new raft DesiredTransition message
2018-03-21 16:49:48 -07:00
Alex Dadgar
48d637dad1
RPC, FSM, State Store for marking DesiredTransistion
...
fix build tag
2018-03-21 16:49:48 -07:00
Alex Dadgar
f6fbb36054
sync
2017-10-13 14:36:02 -07:00
Michael Schurter
04b8f8e7fc
Remove structs import from api
...
Goes a step further and removes structs import from api's tests as well
by moving GenerateUUID to its own package.
2017-09-29 10:36:08 -07:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Alex Dadgar
ac1539d5d9
Sync namespace changes
2017-09-07 17:04:21 -07:00
Alex Dadgar
989aa56304
Remove canary
2017-07-07 12:10:04 -07:00
Alex Dadgar
29e31af007
Attach eval id
2017-07-07 12:10:04 -07: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
0296011d8c
Fix adjust test
2017-01-08 14:14:35 -08:00
Alex Dadgar
e80cecf58b
Scheduler combines meta from job > group > task
2016-12-15 17:08:38 -08: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
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
a9c995b0c7
Added a test for adjustQueuedAllocations
2016-07-25 17:31:40 -07:00
Diptanu Choudhury
230a59ca16
Fixed 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
Alex Dadgar
c5059fc7c4
Rename ConsulService back to Service
2016-06-12 16:36:49 -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
Sean Chittenden
54838b9eba
Rename structs.Task's Service attribute to ConsulService
2016-06-10 15:54:39 -04:00
Sean Chittenden
a2081159b4
Rename structs.Services to structs.ConsulServices
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
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
c37e48e723
inplaceUpdate returns the allocs that were updated in-place
2016-05-17 15:37:37 -07:00
Alex Dadgar
f56bdbe03a
Switch to using the harness
2016-05-16 12:49:18 -07:00