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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×