bangarharshit / websocket-load-balancing

Load balancing websockets using haproxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To run:

  • docker-compose up -d
  • npm install in client folder
  • node client/client.js to run the client and connect to a websocket
  • Note the websocket number - ws#cid
  • docker ps
  • docker stop ws#cid
  • verify the client is reconnected to another server

About

Load balancing websockets using haproxy


Languages

Language:JavaScript 97.0%Language:Dockerfile 3.0%