-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to update request data upon successful deploy #971
Conversation
@@ -10,14 +10,16 @@ | |||
private final Optional<SingularityLoadBalancerUpdate> lastLoadBalancerUpdate; | |||
private final DeployState currentDeployState; | |||
private final Optional<SingularityDeployProgress> deployProgress; | |||
private final Optional<SingularityRequest> newRequestData; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming seems a little awkward in my opinion -- updatedRequest
might make more sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, went back and forth on the name like 10 times already. Open to changing for sure, updatedRequest
sounds good
a831313
to
78407d5
Compare
78407d5
to
8114538
Compare
@tpetr updated the field names and such here. Took another look and I didn't see any more places where we would get conflicts between the two sources of request data.
Would like to get @wsorenson 's thoughts as well to make sure I'm not missing anything. |
What are your thoughts on moving the |
My initial concern was that we then have possibly stale request data that hangs around and isn't correct. The deploy data is saved in history, but if the request is updated, we have out of date data hanging around. The deploy parent data is only around during the time the deploy is actually running as part of the pending deploy. |
@tpetr after the update we made back in April this has been stable, good to merge? |
LGTM |
Currently, if you want to change the scale of a service (or any other request-level setting) as well as deploy new code, you need to do this in two separate steps. This PR adds an optional
newRequestData
field to theSingularityDeployRequest
. If present, it will be added to the pending deploy so that the scheduler and deploy checker will use this new request data for the new deploy. If the deploy succeeds the request is then updated. No other updates to request data are allowed if there is currently a pending deploy that also updates request data.@tpetr @wsorenson