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

Failover at Startup Explained #6

Closed ahannon-fiksu closed 11 years ago

ahannon-fiksu commented 12 years ago

I noticed this in the Failover section:

After thirty seconds it will try to reconnect the dead connection again. One limitation on failover is that a server with an unreachable IP can’t failover on startup. If you have a server completely die and it can’t be restarted, you should update the pool configuration immediately to remove that entry.

What exactly does this mean? When the app starts up, and the server can't connect to a server in the readpool, where will the queries wrapped in SDP calls go? The master? Or, will the app fail to start?

Anyhow, we have been using SDP for quite a while, and we love its simplicity! Thanks!

bdurand commented 11 years ago

I updated the README to be a bit more specific. The process will start up, but the connections which cannot be established will not be added to the pool.