Techniques
Connecting to a Live Server
The 1.0.x PHP Couchbase Client Library does not currently use multiple URIs, but this can be easily worked around when setting up the connection. A future release will add support for multiple URIs.
$servers = array("http://server1:8091", "http://server2:8091"); function my_couchbase_connect($servers) { do { if(empty($servers)) { echo "no suitable server found"; return false; // throw } $server = array_pop($servers); $cb = couchbase_connect($server); } while(!$cb); return $cb; }