-
Notifications
You must be signed in to change notification settings - Fork 407
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
add timeout config in yurthub to handle those watch requests without … #1056
Conversation
…timeoutSeconds parameter like apiserver.
Welcome @AndyEWang! It looks like this is your first PR to openyurtio/openyurt 🎉 |
I also notice this problem, and my case is calico that results in watch request flood. It's reasonable to add timeout for watch request when offline. BTW, is there any reason for the value 1800s? |
just refer to https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/ --min-request-timeout int Default: 1800 |
Codecov Report
@@ Coverage Diff @@
## master #1056 +/- ##
==========================================
+ Coverage 49.45% 49.47% +0.02%
==========================================
Files 96 96
Lines 13054 13056 +2
==========================================
+ Hits 6456 6460 +4
+ Misses 6061 6060 -1
+ Partials 537 536 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Another question here, what's the behaviour of APIServer when handling the watch request with timeoutSeconds parameter? For example, if we set |
apiserver respects the timeoutSeconds parameter and only use --min-request-timeout when timeoutSeconds is zero or not passed. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AndyEWang, rambohe-ch 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 |
What type of PR is this?
/kind enhancement
What this PR does / why we need it:
When yurthub takes charge of apiserver and if there is no timeoutSeconds parameter in watch requests, yurthub returns immediately. This causes the requester to retry watch request frantically. Also both yurthub and requester begin rolling logs.
So to add a new startup option for yurthub to define the default watch timeout and also give a default value(1800s like apiserver) to this option.
Does this PR introduce a user-facing change?