jcsilva / docker-kaldi-gstreamer-server

Dockerfile for kaldi-gstreamer-server.
BSD 2-Clause "Simplified" License
289 stars 139 forks source link

How to scale the the docker so that multiple clients can connect to the ASR? #38

Open kshravi86 opened 6 years ago

kshravi86 commented 6 years ago

Hi Jcsilva

I am running your docker image in one of my compute engine with my models,and i am able to get the streaming work in my android app when i do websocket connection to the docker container.

But if i try to connect to my container with two or more android clients. I am not able to get streaming working.Only one connection can done to the socket.Only one connection works.

Only after that connection is released ,second connection works

How do i scale this docker so that 100s of websocket connection can be opened?

Thank you

jcsilva commented 5 years ago

You must create more slaves and connect all of them to the same master. For this, you will need to create another docker container and run the start.sh script indicating the master ip address.