So my Passenger spins up 5 instances of my Rails app
I connect to MongoDB using Connection.new("localhost", 3000, :pool_size => 1, :timeout => 5)
Why would I need a "pool of connections" if I only incur overhead when starting up my Rails app, not per request? Why would a single process need more than 1 connection?
And what is the purpose of the timeout? Why would I want the connection to timeout? Shouldn't it be persist through the Rails process' lifetime?
So confused...
This question is specific to Ruby and Mongo but I guess it applies to other languages/databases.