HAProxy 配置
# Reference: http://blog.haproxy.com/2012/11/07/websockets-load-balancing-with-haproxy/listen chatbind *:80default_backend nodesbackend nodesoption httpchk HEAD /healthhttp-check expect status 200cookie io prefix indirect nocache # using the `io` cookie set upon handshakeserver app01 app01:3000 check cookie app01server app02 app02:3000 check cookie app02server app03 app03:3000 check cookie app03
