Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    WebSocket and Load Balancer


    I have two servers (2 tomcats) behind a load balancer. My smartgwt application executes websocket calls and the balancer clearly routes them to tomcat 1 or tomcat 2. I would like these websocket connections to be shared between the 2 servers, do you think this is possible? How? Thank you so much

    #2
    Websocket connections are like other IP connections: the connections will be routed automatically by your load balancer logic.

    If you are hoping for something like a single client having a websocket connection that is routed to different servers on a per-IP-packet basis, that would be extremely abnormal and is not necessary.

    However, SmartClient's client-side websocket connection logic will automatically attempt a reconnect if one server fails. There is no need to configure anything to get this to work, and you can just manually kill one of the servers in your loadbalanced cluster to see it happen.

    Comment

    Working...
    X