Skip to content
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

Merged
merged 1 commit into from
May 29, 2019
Merged

make resyncPeriod configurable #1013

merged 1 commit into from
May 29, 2019

Conversation

wackxu
Copy link
Contributor

@wackxu wackxu commented May 27, 2019

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 hour


This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage remained the same at 76.744% when pulling 8a96b16 on wackxu:resync into 671cdab on kubeflow:master.


"k8s.io/api/core/v1"
)

const DefaultResyncPeriod = 12 * time.Hour
Copy link
Member

@johnugeorge johnugeorge May 27, 2019

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

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@johnugeorge
Copy link
Member

/cc @richardsliu

@k8s-ci-robot k8s-ci-robot requested a review from richardsliu May 28, 2019 03:19
@richardsliu
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@johnugeorge
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 2f0d959 into kubeflow:master May 29, 2019
@wackxu wackxu deleted the resync branch May 29, 2019 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants