问题
I am trying to play with connection pooling with activerecord in Ruby. I am using Oracle-enhanced adapter and setting the following properties in database.yml:
reaping_frequency: 30
dead_connection_timeout: 20
I don't see my idle connections getting reaped.
I am using Rails3. I think reaper is available in Rails4.
回答1:
As you say Reaper is only available in Rails 4. However, even with rails 4, oracle-enhanced adapter still does not work with reaper. There is an open ticket with oracle-enhanced adapter to add support for it for reaper.
来源:https://stackoverflow.com/questions/21490822/does-reaper-work-with-oracle-enhanced-adapter-oci-to-reap-out-idle-connections