Thin web server - single or multiple instances per IP address:port?

Posted by wchrisjohnson on Server Fault See other posts from Server Fault or by wchrisjohnson
Published on 2012-09-19T20:35:05Z Indexed on 2012/09/19 21:39 UTC
Read the original article Hit count: 234

Filed under:
|

I'm deploying a rack/sinatra/web socket app onto several servers and will use thin as the web server (http://code.macournoyer.com/thin/). There are almost no views to show, so I am not front-ending it with a traditional web server like Apache or nginx.

In general, you see thin started and the underlying config file for it has the number of server instances to start, say 3, and the port to start with, say 5000. So, in my example, when thin starts, it starts up three instances on a range of ports, starting on port 5000.

If I have a series of virtual machines, say 3, 6, 9, etc. that I treat as a cluster, would/should I choose to start a single thin instance on each VM, or multiple instances on each VM? Why?

Thanks - Chris

© Server Fault or respective owner

Related posts about webserver

Related posts about thin