bdurand / seamless_database_pool

Add support for master/slave database clusters in ActiveRecord to improve performance.
http://rdoc.info/projects/bdurand/seamless_database_pool
MIT License
224 stars 58 forks source link

Free disk space killed by excessive log on reconnect failure #5

Closed child closed 11 years ago

child commented 12 years ago

SDP repeatedly puts following statement in the log: "Failed to reconnect with: " and then the dump of available connections. Unfortunately due to the nature of #inspect method the dump of the connections might be extremely long (I believe it might be as long as a few MBs). Thus, if reconnection problem doesn't go off, all available disk space is filled up in no time.

Statement responsible for that can be located in the lib/active_record/connection_adapters/seamless_database_pool_adapter.rb file, line 286.

bdurand commented 11 years ago

Fixed in 1.0.12