I am brand new to Ruby web applications (from java). I have a VPS that has 1 processor and 2 GB of RAM and would like to play with some rails / sinatra.
I am using Ruby 2.1.0 MRI. How does the number of processors compare with the number of web server processes that I need to run? I use puma as a web server and set the default threads (0.16). But I noticed that there is also the “workers” option, which deploys another process in order to better handle multiple requests.
Do I understand correctly that for such an installation (1 CPU) it makes no sense to run 2 web server processes? The only sensible setup is 1 process with threads?
source
share