Preetha Appan
0e2fefad36
Parse test for spread
2018-09-04 16:10:11 -05:00
Preetha Appan
ed4ed16b5d
Parsing and API layer for spread stanza
2018-09-04 16:10:11 -05:00
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
ffab506f84
validate spread from job/task group validate methods
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
a6d309c005
Validate method, and rename ratio field to percent
2018-09-04 16:10:11 -05:00
Preetha Appan
43c6337a25
Structs and validation for spread
2018-09-04 16:10:11 -05:00
Preetha Appan
0cd73bdce0
Fix test
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
Preetha Appan
f907c42ba5
More review comments
2018-09-04 16:10:11 -05:00
Preetha Appan
9aa07bd1f5
Fail validation if system job has affinities
2018-09-04 16:10:11 -05:00
Preetha Appan
25ad4643c3
Treat set_contains as a synonym of set_contains_all
2018-09-04 16:10:11 -05:00
Preetha Appan
09544f640c
Include affinities in job and task diff, and more test cases
2018-09-04 16:10:11 -05:00
Preetha Appan
218ce28554
Refactor method to return affinity struct, and add extra test at task level
2018-09-04 16:10:11 -05:00
Preetha Appan
8895f0c1f8
Fix Copy method for job and task to include affinities
2018-09-04 16:10:11 -05:00
Preetha Appan
1774aa2526
Remove unused field
2018-09-04 16:10:11 -05:00
Preetha Appan
8f2d5742c4
Affinity parsing, api and structs
2018-09-04 16:10:11 -05:00
Preetha Appan
b9b75c8f97
Update changelog
2018-09-04 15:00:34 -05:00
Preetha
a78d0c32bc
Merge pull request #4632 from hashicorp/b-delay-heap-race
...
Use eval broker lock when reading/modifying delay heap
2018-09-04 13:58:04 -06:00
Michael Schurter
fd827f8d0e
Merge pull request #4627 from hashicorp/doc-rkt-group
...
docs: mention rkt group option
2018-09-04 10:21:47 -07:00
Preetha Appan
2d1c9d2a99
Use readlock
2018-09-04 11:45:05 -05:00
Michael Schurter
95855f068f
Merge pull request #4620 from hashicorp/f-optional-race
...
Add a -race enabled build to Travis
2018-08-31 14:03:28 -07:00
Nick Ethier
661502b31a
Merge branch 'master' of https://github.com/hashicorp/nomad
...
* 'master' of https://github.com/hashicorp/nomad: (59 commits)
Test coverage for the promote canary feature
Update README.md
launcher readme
Add stats to launcher
Add stats to example plugin
Example device plugin and helpers
Fix the flickering issue with start/stop job
Add a confirmation loading state to the two-step-button component
Switch stop/run job actions to EC tasks
Test coverage for the Start Job behavior
Add Start Job action on the job overview page for when a job is dead
gofmt -s
Update the info message about token storage
Switch token storage to localStorage from sessionStorage
add stats to device interface
Change the latest deployment component to include a Promote Canary button
Support the promote deployment api action
Simplify the data control flow around job.plan()
statistics protos
Acceptance tests for the edit behaviors on the job definition page
...
2018-08-31 14:46:20 -04:00
Nick Ethier
01d820bcfc
add changelog line for npe fix
2018-08-31 14:45:38 -04:00
Preetha Appan
482e086d54
Use eval broker lock when reading/modifying delay heap
2018-08-31 10:59:48 -05:00
Michael Lange
130e951a37
Merge pull request #4600 from hashicorp/f-ui-job-writes
...
UI: Job Writes
2018-08-30 10:41:14 -07:00
Michael Lange
334358ad24
Merge pull request #4615 from hashicorp/f-ui-restart-stopped-job
...
UI: Restart stopped job
2018-08-30 09:49:14 -07:00
Michael Lange
d824b70cee
Merge pull request #4616 from hashicorp/f-ui-promote-canary
...
UI: Promote canary
2018-08-30 09:48:31 -07:00
Michael Lange
c96c99aa37
Test coverage for the promote canary feature
2018-08-30 09:38:29 -07:00
Michael Lange
240eb6697c
Merge pull request #4628 from hashicorp/f-ui-use-ls-not-ss-for-tokens
...
UI: Use localStorage instead of sessionStorage to store ACL tokens
2018-08-28 15:27:09 -07:00
Alex Dadgar
dc48000da1
Update README.md
2018-08-28 15:08:59 -07:00