Alex Dadgar
|
cc92cd92cd
|
Merge pull request #4642 from hashicorp/b-vet
Fix vet errors and use newer go version in travis
|
2018-09-04 17:04:02 -07:00 |
|
Alex Dadgar
|
c6576ddac1
|
Fix make check errors
|
2018-09-04 16:03:52 -07:00 |
|
Preetha Appan
|
751c0eb5a5
|
code review feedback
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
9bc0962527
|
Track top k nodes by norm score rather than top k nodes per scorer
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
6ed527c636
|
Use heap to store top K scoring nodes.
Scoring metadata is now aggregated by scorer type to make it easier
to parse when reading it in the CLI.
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
65cf4373b3
|
fix linting error
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
dd5fe6373f
|
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
|
e72c0fe527
|
more cleanup
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
4c624424e6
|
added some unit tests for -1 spread score
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
92d37acc2a
|
comment and formatting cleanup
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
7b0a27cad6
|
fix scoring algorithm when min count == current count
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
bad075f640
|
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
|
c56873ff37
|
Implement support for even spread across datacenters, with unit test
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
d091c00dd3
|
Support implicit spread target to account for remaining desired counts
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
33779abe5f
|
fix comments
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
5812f906c8
|
Allow empty spread targets, and validate target percentages.
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
55f276c189
|
Include spreads configured at job level when precomputing weights/desired counts.
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
fbd0004707
|
Fix warnings
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
db0d95b09c
|
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
|
eccf128c5c
|
Some minor changes from code review
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
038ed52877
|
Fix after rename to ConstraintSetContainsAny
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
3a39db3902
|
Fix linting
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
d5cd2bbddb
|
Remove unnecessary reset
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
dccb693221
|
test for setcontainsany, and treat set_contains same as set_contains_all
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
70bfd0c0cb
|
Address some review feedback
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
8685593ec0
|
Back out changes to propertyset that were not necessary for affinities
|
2018-09-04 16:10:11 -05:00 |
|
Preetha Appan
|
5eacd6ada4
|
Implement affinity support in generic scheduler
|
2018-09-04 16:10:11 -05:00 |
|
Alex Dadgar
|
e1c239daae
|
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
|
6b6777359b
|
scheduler: fix missing err assignment
|
2018-07-11 14:27:10 -04:00 |
|
Nick Ethier
|
5f6def5b04
|
scheduler: better error handling
|
2018-07-05 11:00:03 -04:00 |
|
Nick Ethier
|
030e650e78
|
scheduler: fix nil pointer exception
|
2018-07-02 16:05:38 -04:00 |
|
Alex Dadgar
|
300b1a7a15
|
Tests only use testlog package logger
|
2018-06-13 15:40:56 -07:00 |
|
Alex Dadgar
|
c3c79c408e
|
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
|
b64788043e
|
make test create index clearer
|
2018-06-05 17:29:59 -05:00 |
|
Preetha Appan
|
3e264dcb79
|
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
|
f8a23bc54a
|
fix test comment
|
2018-05-09 16:01:34 -05:00 |
|
Preetha Appan
|
ef531b0f34
|
Add unit tests for forced rescheduling
|
2018-05-09 11:30:42 -05:00 |
|
Preetha Appan
|
c1b92c284e
|
Work in progress - force rescheduling of failed allocs
|
2018-05-08 17:26:57 -05:00 |
|
Alex Dadgar
|
555d14fd92
|
Add test
|
2018-05-07 14:55:01 -05:00 |
|
Preetha Appan
|
cf44670d56
|
Make sure that task group has a deployment state before using it
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
c6478d9469
|
clarify comment
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
768fec8505
|
Allow healthy canary deployment to skip progress deadline
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
8626c1b94a
|
Reschedule when we have canaries properly
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
8dee3ab068
|
canary reschedule test
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
deb93dc7b7
|
Test for rescheduling when there are canaries
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
550f5e31f8
|
Allow canary count greater than desired
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
f95ab4ade8
|
Mark canaries on creation, and unmark on promotion
|
2018-05-07 14:50:01 -05:00 |
|
Preetha Appan
|
5329900f6d
|
Only use DesiredTransition.Reschedule in reconciler when its an active deployment
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
e7444c3873
|
Add test where deployment is marked as complete when done even with failed allocs
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
57969b4ee0
|
fix reconcile tests
|
2018-05-07 14:50:01 -05:00 |
|