Multiple instance of sync gateway on same server with different ports


#1

Hi guys

Is it possible to execute and start multiple Sync Gateway on same server with different ports which can be used by NGINX to create load balancer.

my server already has 64GB RAM and 8 CORE CPU and in sync gateway documents for production deployment mentioned required hardware is Quad-core/4GB RAM.

So i m wonder am I able to run multiple instance on same server or not ? and what is the limit number of multiple instance on same server and multiple servers?


#2

I believe it works. I’ve had multiple running on the same machine, you just need to make sure that the ports don’t conflict.

The real problem is the install and uninstall scripts. They don’t currently support multiple instances of the sync-gateway because they hard code some parameters such as the service name. It’s probably an easy fix, I’ve not got round to submitting a PR yet though.