by wpeterson · 13y ago · 0 comments
Unless you're running jRuby, you're limited by Ruby's green threads. If you want to saturate all of the cores on your server, you need 1-2 processes per core and then a thread pool within each to keep it well utilized.
I've been running a 4x10 rainbows process/thread setup in production with good results on AWS dual core systems.
Ruby (MRI) started using native threads in 1.9, but you are still bound by the GIL.