Play 2 + Apache load balancer + websockets deployment

572 views
Skip to first unread message

Pawan Kumar

unread,
Aug 21, 2012, 10:42:55 PM8/21/12
to play-fr...@googlegroups.com
Dear All,

Configuration: Play 2.1-SNAPSHOT
Browser: FF 11.0
Scala: 2.9.2

Somehow when deploying play app behind two servers for load balancing using apache (v2.4 and also v2.2), websockets requests from server to client are not going through.
Websockets call are working great on a single server running without any load balancer.
I am hoping it is related to some configuration of websockets ports or something which I am missing.
Any idea on fixing this?

Thanks
Pawan

Keyston Clay

unread,
Aug 22, 2012, 6:06:00 PM8/22/12
to play-fr...@googlegroups.com

Have you looked into HAProxy it should work well for your case

Will Sargent

unread,
Aug 22, 2012, 6:12:53 PM8/22/12
to play-fr...@googlegroups.com
Apache doesn't support Websockets.

https://issues.apache.org/bugzilla/show_bug.cgi?id=47485

You should use HAProxy instead:

http://stackoverflow.com/a/10905481/5266

Will.
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/3__buqZKBoEJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

Pascal Voitot Dev

unread,
Aug 22, 2012, 6:13:50 PM8/22/12
to play-fr...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/qgig6k6RWXYJ.
Reply all
Reply to author
Forward
0 new messages