-
Notifications
You must be signed in to change notification settings - Fork 662
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
NonSlidingUntil for deployment #692
Conversation
Hi @jklaw90. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @seanmalloy |
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.
/ok-to-test
Sounds good to me, thanks for the suggestion @jklaw90 !
@@ -116,7 +116,7 @@ func RunDeschedulerStrategies(ctx context.Context, rs *options.DeschedulerServer | |||
ignorePvcPods = *deschedulerPolicy.IgnorePVCPods | |||
} | |||
|
|||
wait.Until(func() { | |||
wait.NonSlidingUntil(func() { |
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.
The intent of the jitter factor is to make sure all clients sending a request to the apiserver do not sent the request at the same time or too close to each other in time. Given the running time of all the strategies is unknown in advance, using the sliding version helps to increase the randomness.
Trying to make the run times on more of an interval in order to make executions times more predictable.
@jklaw90 I wonder what's the motivation for making the execution time more predictable and if there are measurements which might tell us if using the non-sliding version has any benefits for the overall resource utilization (e.g. API requests) of the cluster.
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.
I wonder what's the motivation for making the execution time more predictable
I think the use case could be for example: you expect descheduler to run every 30 minutes, but you have a giant (hypothetical) cluster where each run takes 20 minutes. If the timer doesn't start until the first run completes, that means your 2 runs will actually appear 50 minutes apart
@jklaw90 thank you for opening the topic of the descheduler improvements. Is your motivation to improve the debugability, performance or other aspect of the descheduler? |
@ingvagabund debugging and testability are why i think we should use the non sliding window. Here is an example of the two since the documentation wasn't the clearest for
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund, jklaw90 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
NonSlidingUntil for deployment
Use NonSlidingUntil over Until in order to account for function duration.
Trying to make the run times on more of an interval in order to make executions times more predictable.
Using NonSlidingWindow will make the deployment behave more like the cronjob timing wise.