views:

224

answers:

1

If my Rails application has the database pool size set to 5 (the default) in my database.yml file, and I'm running using Phusion Passenger, does that mean that there may be up to 5 database connections for each process that Passenger spawns, or is it 5 total across all processes?

+1  A: 

The pool size applies to one ruby process. Some ruby interpreters can use threading to handle multiple requests, like jRuby. The pool size applies for that one process and all threads.

Passenger does not use threading, but instead creates new ruby processes.

Ariejan