-
Notifications
You must be signed in to change notification settings - Fork 710
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
make resyncPeriod configurable #1013
Conversation
|
||
"k8s.io/api/core/v1" | ||
) | ||
|
||
const DefaultResyncPeriod = 12 * time.Hour |
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.
What should be the optimal default resync period? Currently, it is set to 30 sec
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.
In k8s, the default resync period is 12 hour. tf-operator is event driven to reach the desired state, so we do not really need the resync mechanism. If the resync period is short, it may reduce the processing speed of tf-operator, so we can make it longer like k8s.
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 resync is strongly suggested by jeremy. But I think we do not really need it. 12h LGTM. If there are some problems caused by the long period, it should be somewhere has bugs in the implementation.
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.
Agree. But since we are moving to v1, we need to test well to see if there are any hidden bugs.
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.
/lgtm
/cc @richardsliu |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richardsliu 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 |
/retest |
For now, the default value for
resyncPeriod
is 30s and it is too short and we do not rely on the resync of reflector to sync our tfjob, So make the resyncPeriod configurable and update the default value to 12 hourThis change is