So, my Passenger launched 5 instances of my Rails application
I connect to MongoDB using Connection.new ("localhost", 3000 ,: pool_size => 1 ,: timeout => 5)
Why do I need a βconnection poolβ if I only have the overhead of running my Rails application and not a query? Why does one process require more than one connection?
And what is the purpose of the timeout? Why do I need a timeout connection? Shouldn't this continue throughout the life of Rails?
So confused ...
This question is specific to Ruby and Mongo, but I assume that it applies to other languages ββ/ databases.
ruby database mongodb
Alexandre
source share