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

Increase websockets idle timeout #790

Merged
merged 4 commits into from
Nov 7, 2018

Conversation

migmartri
Copy link
Contributor

@migmartri migmartri commented Nov 7, 2018

The main issue was that websocket connections were being closed after 60 seconds of idle time.

selection_746

This was because Nginx, which we use as a proxy has 60 seconds timeout by default. I have increased that idle timeout to 1 hour only in the ws location.

I have tested it in my local deployment.

Fixes #766

@@ -38,6 +38,9 @@ data:
# Hide Www-Authenticate to prevent it triggering a basic auth prompt in
# the browser with some clusters
proxy_hide_header Www-Authenticate;
# Keep the connection open with the API server even if idle.
# Default 60 seconds, see https://github.com/kubeapps/kubeapps/issues/766
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is confusing, sounds like you're saying that we're defaulting it to 60s.

Suggested change
# Default 60 seconds, see https://github.com/kubeapps/kubeapps/issues/766
# nginx defaults this to 60 seconds, we override it to 1h. See https://github.com/kubeapps/kubeapps/issues/766

@prydonius
Copy link
Contributor

Great find @migmartri, thanks for fixing!

@prydonius
Copy link
Contributor

lgtm!

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Great, LGTM

@migmartri migmartri merged commit 7ea41e7 into vmware-tanzu:master Nov 7, 2018
@migmartri migmartri deleted the 766-ws-issues branch November 7, 2018 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New app deployment not updating
3 participants