PHP SDK failover handling
I'm trying to understand how the SDK handles failover. Manual says the following but it is not completely clear to me:
Create a connection to Couchbase Server with given parameters, such as node URL. Most SDKs accept a list of possible URL's to avoid an error in case one node is down. After initial connection a Couchbase Client uses node topology provided by Couchbase Server to reconnect after failover or rebalance.
For example, if you have a 2 node Couchbase v2.0 server cluster - 184.108.40.206 and 220.127.116.11. I connect via:
$cb = new Couchbase("18.104.22.168:8091", "user", "pass", true);
22.214.171.124 goes down. Does the couchbase sdk persist the topology info in static memory/apc or something? so that when 126.96.36.199 is down it knows to connect to 188.8.131.52? Or do I have to specify the $URL as a list (as the comment suggests)?
Thx in advance. Couldn't really find clear answer on the forums, sorry if this is a dup (http://www.couchbase.com/forums/thread/server-crash-etc kinda touches on it)