I use rhoconnect as a production sync server for my rhomobile app. In my /etc/thin/myapp.yml file I set the number of Thin servers to 4, and in /opt/nginx/conf/conf.d/rhoconnect.conf I uncomment the following lines:
My question is: how does rhoconnect uses these 4 thin servers? Does it use them to have a load balance of devices requests of sync, and to have concurrency in synchronization?
In my experience I can see only 1 server working, since only thin.3.log is increasing its file size, while all the other thin.n.log files are still since the latest restart of rhoconnect.
Thank you for your attention and for your help.
Its uses Nginx clustering methodology and it will automatically decide when to call the instances of thin servers.
You can try kill one of four server and see it stil working. sudo rm /tmp/thin.0.pid to remove thin1 server.