Load Balance non-web based docker containers
I am trying a usecase where I am doing the following:
- Create a containers for the service exposed on ports 2321,2322 , the service is not an http service and has no endpoint API - Done
- Scale the service to multiple containers- 5- Done
- Load Balance the incoming requests to the service , the incoming request are via shell commands which the service accepts and responds. - Not able to achive
How can i load balance incoming requests to a non-http service running inside a container. I tried HAPROXY, but it accepts http protocol on port 80 by default.