Address intermittent or frequent websocket disconnects in Zoomdata
When experiencing intermittent or frequent websocket disconnects in Zoomdata, check for the following:
- What version of Zoomdata you are using? Consider upgrading to the latest available Zoomdata version. There have been various fixes and improvements to websocket behavior implemented that may address your issue.
- Follow-up with your network or IT team to verify if the issue may be related network-related. For example, traffic between Zoomdata and your end users may be getting rerouted or there could be some other kind of network configuration that may be causing websocket timeouts to occur in your environment on a frequent/regular basis.
- Check if there are any other applications (e.g. antivirus) that might be trying to block websocket sessions from establishing.
- Are these websocket disconnects only occurring in Zoomdata or can these websocket disconnects be observed by the end-user when using other applications from the same browser machine?
If you are using a load-balancer with Zoomdata, consider the following:
- Review your load-balancer configuration to verify what the default session/websocket timeout value is for your environment. Increase if needed. For example, in the Configuring Zoomdata Behind A Load Balancer article, our default SAML w/ HAProxy configuration (step 2) will set this value to 18000 seconds.
- Your load-balancer may not support protocol changes (HTTP/101), such as AWS ELB. The Zoomdata application, which uses a combination of HTTP, REST services, and websockets, requires a load balancer that supports protocol switching. In this case, consider using an alternative load-balancer that supports protocol changes or configure it to function as a Layer-3 proxy if possible. If you are using ELB, you might find this blog post informative and a good starting point.
- If you are using HAProxy v1.5 or newer , please verify what your configured timeout setting value is for tunnel mode as it will override other server/client timeout settings. Thus, if set to a low value, this setting can cause frequent websocket disconnects to occur. For more information about tunnel mode, refer to the HAProxy documentation .
By default, the session timeout for the Zoomdata server is 30 minutes. If users are idle for extended periods of time, the existing websocket connections will timeout and this is expected behavior.