# Help: pool doesn't work correctly!

**URL:** <https://www.ruby-forum.com/t/help-pool-doesnt-work-correctly/170962>\
**Category:** Rails\
**Created:** [June 24, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/help-pool-doesnt-work-correctly/170962 "2009-06-24T14:55:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xdmx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/53a042/32.png) [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Post date:** [June 24, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/help-pool-doesnt-work-correctly/170962/1 "2009-06-24T14:55:21Z")

</div>

Hi, i’m using nginx+passenger and i’ve set a max\_connection\_pool for  
passenger equal to 10, and the rails pool in the database.yml to 25.  
Looking to the production log i’ve found that it’s not updated (i’ve  
restart both mysql and nginx). The error is:  
ActiveRecord::ConnectionTimeoutError (could not obtain a database  
connection within 5 seconds. The max pool size is currently 5; consider  
increasing it.):

Cleary it’s not updated to 25 but it still use the default (5)

This is the db.yml:

production:  
adapter: mysql  
database: …  
username: …  
password: …  
host: localhost  
port: …  
timeout: 5000  
pool: 25

How can i fix this and let it use 25 instead of 5?
