Remove paused requests from LB - #694
Conversation
There was a problem hiding this comment.
what happens if getLoadBalancer() state is called after createLBCleanupRequest(), but no saveLoadBalancerState()?
There was a problem hiding this comment.
From what I interpreted it would return an Optional.absent, which would tell the cleanup method that no request has been sent yet and the cleanup still needs to be started
|
LGTM but I'd like to get @wsorenson's 2 cents on it too |
|
Are there tests? |
|
Not yet, I can write some up today though |
There was a problem hiding this comment.
Does the service not take optionals ? Seems awkward to have to transition between Optionals and empty collections here.
|
What is the difference between deleting request vs deleting tasks in Baragon? On unpause, will task additions automatically recreate what's been deleted? (I see no corresponding call) |
|
A |
|
So do we issue a DELETE on request removal? |
|
Yes, |
|
Added a test for the request lb cleanup queue and one small tweak for processing the cleanup |
Now that Baragon supports the
DELETErequest action for a few releases, this introduces lb cleanup for paused requests. Since our current LB cleanup queue is very task based, it would be difficult to accurately determine from a task's point of view that a request could be deleted form the LB. So, I implemented a request-based lb cleanup queue to go alongside our task-based one.@tpetr