I'm deploying a rack/sinatra/web socket app onto several servers and will use thin as the web server. There are almost no views to show, so I am not front-ending it with a traditional web server like Apache or nginx. Also, it will have a web socket component, and that is more problematic from a reverse proxy standpoint.
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?
> I'm deploying a rack/sinatra/web socket app onto several servers and will
> use thin as the web server. There are almost no views to show, so I am not
> front-ending it with a traditional web server like Apache or nginx. Also,
> it will have a web socket component, and that is more problematic from a
> reverse proxy standpoint.
> 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
> Note: I asked this question on ServerFault and StackOverflow with no
> responses yet:
> --
> You received this message because you are subscribed to the Google Groups
> "thin-ruby" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/thin-ruby/-/bfNAbYnS-2EJ.
> To post to this group, send email to thin-ruby@googlegroups.com.
> To unsubscribe from this group, send email to
> thin-ruby+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/thin-ruby?hl=en.
> To post to this group, send email to thin-ruby@googlegroups.com.
> To unsubscribe from this group, send email to
> thin-ruby+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/thin-ruby?hl=en.