Preetha Appan
|
72570e0698
|
fix linting error
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
31b2102055
|
Fix scoring logic for uneven spread to incorporate current alloc count
Also addressed other small code review comments
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
1ac696da56
|
more cleanup
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
fc48be3656
|
added some unit tests for -1 spread score
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
f881c4f266
|
comment and formatting cleanup
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
2dfdd4874f
|
fix scoring algorithm when min count == current count
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
35bda8c975
|
Remove hardcoded boosts for even spread.
instead, calculate them based on delta between current and minimum value
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
7a5791f39e
|
Implement support for even spread across datacenters, with unit test
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
56de0d0a11
|
Support implicit spread target to account for remaining desired counts
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
5f1d40e4c3
|
fix comments
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
fa7e3a3f35
|
Allow empty spread targets, and validate target percentages.
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
bf84a5985a
|
Include spreads configured at job level when precomputing weights/desired counts.
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
e2ce63e489
|
Fix warnings
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
fd697272a7
|
Implement spread iterator that scores according to percentage of desired count in each target.
Added this as a new step in the stack and some unit tests
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
5cd8d1fe82
|
Some minor changes from code review
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
1340533c99
|
Fix after rename to ConstraintSetContainsAny
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
3d3a5aa4ad
|
Fix linting
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
b5042067e7
|
Remove unnecessary reset
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
db7a8b691f
|
test for setcontainsany, and treat set_contains same as set_contains_all
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
a236342caa
|
Address some review feedback
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
3f7e0ffa4d
|
Back out changes to propertyset that were not necessary for affinities
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
00924555a8
|
Implement affinity support in generic scheduler
|
2018-09-04 16:10:11 -05:00 |
|
Alex Dadgar
|
bc559d408c
|
Merge pull request #4414 from hashicorp/b-stop-summary
Reset Queued allocs to zero when job stopped
|
2018-07-16 14:32:55 -07:00 |
|
Nick Ethier
|
21682427f3
|
scheduler: fix missing err assignment
|
2018-07-11 14:27:10 -04:00 |
|
Nick Ethier
|
3e7d4302a6
|
scheduler: better error handling
|
2018-07-05 11:00:03 -04:00 |
|
Nick Ethier
|
1acbf1daf9
|
scheduler: fix nil pointer exception
|
2018-07-02 16:05:38 -04:00 |
|
Alex Dadgar
|
98c7abe541
|
Tests only use testlog package logger
|
2018-06-13 15:40:56 -07:00 |
|
Alex Dadgar
|
ab39c513b7
|
Reset Queued allocs to zero when job stopped
When a job is stopped but not purged, we should set the Queued count to
be zero.
|
2018-06-13 10:46:39 -07:00 |
|
Preetha Appan
|
8e5909f073
|
make test create index clearer
|
2018-06-05 17:29:59 -05:00 |
|
Preetha Appan
|
65c08b76d3
|
Fix reconciler bug with deployment not being created if job create index is different
This fixes an issue where if a job is purged and resubmitted Nomad does not create
a new deployment. Adds unit test that failed before this fix
|
2018-06-05 13:58:53 -05:00 |
|
Preetha Appan
|
4f9d92cad3
|
fix test comment
|
2018-05-09 16:01:34 -05:00 |
|
Preetha Appan
|
268a99e71a
|
Add unit tests for forced rescheduling
|
2018-05-09 11:30:42 -05:00 |
|
Preetha Appan
|
242cc191a1
|
Work in progress - force rescheduling of failed allocs
|
2018-05-08 17:26:57 -05:00 |
|
Alex Dadgar
|
fc099e59ea
|
Add test
|
2018-05-07 14:55:01 -05:00 |
|
Preetha Appan
|
0babfcc42c
|
Make sure that task group has a deployment state before using it
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
ca588f9ce0
|
clarify comment
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
42d3c05e4d
|
Allow healthy canary deployment to skip progress deadline
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
0e1fb91189
|
Reschedule when we have canaries properly
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
686cff26d6
|
canary reschedule test
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
588bf68d45
|
Test for rescheduling when there are canaries
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
ff7b1bebcc
|
Allow canary count greater than desired
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
8be599af94
|
Mark canaries on creation, and unmark on promotion
|
2018-05-07 14:50:01 -05:00 |
|
Preetha Appan
|
32557a1a99
|
Only use DesiredTransition.Reschedule in reconciler when its an active deployment
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
b8aa63a780
|
Add test where deployment is marked as complete when done even with failed allocs
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
be3e3eadf6
|
fix reconcile tests
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
b1df4611fe
|
Only reschedule allowed deployment allocs
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
1050b89ac3
|
small review feedback fixes
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
bcaaa10d27
|
Progress deadline in deployment state
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
15c3abf816
|
Initial implementation
|
2018-05-07 14:50:01 -05:00 |
|
Preetha Appan
|
87bcd3871b
|
Add custom status description for rescheduling follow up evals, and make unit test robust
|
2018-04-10 15:30:15 -05:00 |
|