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
Bug 1836212: Introduce a custom Dailer to close TCP connections when heartbeat fails #200
Conversation
|
This PR is inspired by kubernetes/kubernetes#78016, and it can mitigate the problem caused by https://bugzilla.redhat.com/show_bug.cgi?id=1826769 |
pkg/daemon/writer.go
Outdated
| glog.Warningf("Failed to fetch node %s (%v); retrying...", nodeName, lastErr) | ||
| glog.Warningf("getNodeState(): Failed to fetch node state %s (%v); close all connections and retry...", w.node, lastErr) | ||
| // Use the Get() also as an client-go keepalive indicator for the TCP connection. | ||
| if w.OnHeartbeatFailure != nil { |
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 think this can't be null, but if so, wouldn't it better for this to explode instead of not working? Or, if you are on the defensive side, can you add a log here?
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 think you're right.
|
Nice! |
Correct. This happens in my environment frequently. But I'm still waiting for QE's feedback with their environment. Normally, if the cluster network works as expected, the timeout won't happen. Have you experienced such an issue? |
Nope, but I'll keep an eye on that |
Update: we are definitely experiencing that. |
|
@pliurh: This pull request references Bugzilla bug 1836212, which is invalid:
Comment In response to this:
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. |
|
/bugzilla refresh |
|
@pliurh: This pull request references Bugzilla bug 1836212, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
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. |
|
/retest |
|
/test e2e-aws |
1 similar comment
|
/test e2e-aws |
|
/lgtm |
Force close connections on heartbeat failure, when heartbeat failed, we invoke closeAllConns and reestablish new connections. We use the writer's periodic Get() call as hearbeat singal, to detect whether the HTTP connection to the apiserver is still healthy.
|
/lgtm |
|
@pliurh: All pull requests linked via external trackers have merged: openshift/sriov-network-operator#200. Bugzilla bug 1836212 has been moved to the MODIFIED state. In response to this:
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. |
Fix Makefile uninstall target
Force close connections on heartbeat failure, when heartbeat failed, we invoke closeAllConns and reestablish new connections. We use the writer's periodic Get() call as hearbeat singal, to detect whether the HTTP connection to the apiserver is still healthy.