Commit Graph

10165 Commits

Author SHA1 Message Date
Preetha Appan
ee5b39071e Change the default mode for client side restarts to fail from delay 2018-01-31 10:39:11 -06:00
Preetha Appan
e34731fd4e Code review feedback and more test cases 2018-01-31 09:58:05 -06:00
Preetha Appan
cc0eb857eb Consider dead job status and modify unit test setup for correctness 2018-01-31 09:58:05 -06:00
Preetha Appan
953cb8c36b Use next alloc id being set, move outside structs package and other code review feedback 2018-01-31 09:58:05 -06:00
Preetha Appan
3e16ce316e Unit test for alloc struct's GCEligible method 2018-01-31 09:58:05 -06:00
Preetha Appan
f96225df83 Make garbage collection be aware of rescheduling info in allocations 2018-01-31 09:58:05 -06:00
Preetha Appan
3389fb19f1 Remove unnecessary newlines 2018-01-31 09:58:05 -06:00
Preetha Appan
9ef99dd56c Unit test for alloc struct's GCEligible method 2018-01-31 09:58:05 -06:00
Preetha Appan
78ec294236 Make garbage collection be aware of rescheduling info in allocations 2018-01-31 09:58:05 -06:00
Preetha Appan
953d5d9df3 Code review feedback 2018-01-31 09:58:05 -06:00
Preetha Appan
d09bad7909 code review feedback 2018-01-31 09:58:05 -06:00
Preetha Appan
fc926c96d0 Flaky contains check replaced with regex 2018-01-31 09:58:05 -06:00
Preetha Appan
d047a24867 Always show reschedule tracking and next alloc id in alloc status 2018-01-31 09:58:05 -06:00
Preetha Appan
421533341d Show info about remaining reschedule attempts relative to alloc modify time 2018-01-31 09:58:05 -06:00
Preetha Appan
a0ff19e409 Add method on API alloc to calculate attempted and remaining reschedule events 2018-01-31 09:58:05 -06:00
Preetha Appan
ca83498e90 Show some information about rescheduling in alloc-status cli 2018-01-31 09:58:05 -06:00
Preetha Appan
7917c908b4 Add a field to track the next allocation during a replacement 2018-01-31 09:58:05 -06:00
Preetha Appan
765679f7c9 Track previous node id correctly, plus unit test 2018-01-31 09:58:05 -06:00
Preetha Appan
a2cdb5d6c0 Add more clarification in comment 2018-01-31 09:58:05 -06:00
Preetha Appan
0e5d18bb8c Preallocate slice for skipped nodes 2018-01-31 09:58:05 -06:00
Preetha Appan
8d1395ea16 Better score threshold 2018-01-31 09:58:05 -06:00
Preetha Appan
ed77599afc Add one more unit test 2018-01-31 09:58:05 -06:00
Preetha Appan
3429dfa716 Limit iterator uses a score threshold and a maxSkip value to be able to skip lower scoring nodes 2018-01-31 09:58:05 -06:00
Preetha Appan
c1f4066c56 Fix logging levels per code review 2018-01-31 09:58:05 -06:00
Preetha Appan
89a467aaaf Remove unused method 2018-01-31 09:58:05 -06:00
Preetha
de34bc41fe replace err with warn 2018-01-31 09:58:05 -06:00
Preetha Appan
0b75835fe0 s/assert/require/g 2018-01-31 09:58:05 -06:00
Preetha Appan
095e99bc92 Remove extra fields set in client allocations during update 2018-01-31 09:58:05 -06:00
Preetha Appan
162f75e834 Address code review comments 2018-01-31 09:58:05 -06:00
Preetha Appan
e41f68d7fa Fix linting 2018-01-31 09:56:53 -06:00
Preetha Appan
b2068741f7 Fix flaky test that fails when there is CPU contention 2018-01-31 09:56:53 -06:00
Preetha Appan
ccc434ee6a Add RescheduleTracker to allocations API struct 2018-01-31 09:56:53 -06:00
Preetha Appan
9a21db844d Fix unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
eab9d2da92 Add reschedule policy to API, and HCL parsing support. 2018-01-31 09:56:53 -06:00
Preetha Appan
dd00e637ad Clean up comments, and one more unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
c89c29deed Reconcile against reschedule tracker api changes 2018-01-31 09:56:53 -06:00
Preetha Appan
034e039ca0 Edge trigger evaluation when allocations client status is failed 2018-01-31 09:56:53 -06:00
Preetha Appan
aa1af00fbd Beef up unit test for rescheduling batch jobs 2018-01-31 09:56:53 -06:00
Preetha Appan
a49ad471f9 Address more code review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
c5f81b426f Make sure that reschedule trackers are not added for node drain replacements 2018-01-31 09:56:53 -06:00
Preetha Appan
0b6846873b Improve reconciler unit tests 2018-01-31 09:56:53 -06:00
Preetha Appan
4cbef07d37 Prevent side effect modification of select options when preferred nodes are set 2018-01-31 09:56:53 -06:00
Preetha Appan
c6c0741bd8 Add helper methods, use require and other code review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
d96873c827 Reconile with changes to structs for reschedule tracking 2018-01-31 09:56:53 -06:00
Preetha Appan
cc54e11802 Fix some comments and lint warnings, remove unused method 2018-01-31 09:56:53 -06:00
Preetha Appan
5ecb7895bb Reschedule previous allocs and track their reschedule attempts 2018-01-31 09:56:53 -06:00
Preetha Appan
b2f2e28940 Named fields in unit test and one more test case 2018-01-31 09:56:53 -06:00
Preetha Appan
227641e2dc Clean up the copy method + unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
05d40afc14 Wrap reschedule events in another struct and other review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
949f0b3d5d Export RescheduleEligible method for accessibility from UpdateAlloc endpoint 2018-01-31 09:56:53 -06:00