I'm using the sfDoctrineMasterSlavePlugin (BTW it's pretty BA Kris ;p)
and I was curious to know if the plugin checks to make sure it can
connect to one of the slaves, if it can't connect it will choose
another until it finds one. I added 5 slaves and 1 master to the
databases.yml file. Works like a charm, then I changed some of the
connections so that they will fail. When it tried to connect to those
it failed.

So my next step is going to be to hook into the slave select event and
use that to try to resolve the the host. It would just loop through
until it found one that worked.

I'm not 100% sure that this is the best way to do this so I thought I
would ask on here if anyone else had any other ideas or has used this
plugin to do this.

The logic behind this is that if you have 3 slaves and 1 server goes
down, it will still use the other 2 and not use the 1 server that is
down.

Thanks,
f1g

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to