Details
Description
A user says they could not determine how to set up the PHP client for failover per the docs. I think that means there is confusion about what is actually happening when setting up the URLs.
From the user:
i didn't find anything in the examples about adding multiple servers kelye @ 2:19
like new Couchbase ('10.1.1.1:1121, 10.1.1.2:1121'. .. etc 2:19
for failover 2:19
I've explained things, but perhaps we need to do more at the documentation level?
From the user:
i didn't find anything in the examples about adding multiple servers kelye @ 2:19
like new Couchbase ('10.1.1.1:1121, 10.1.1.2:1121'. .. etc 2:19
for failover 2:19
I've explained things, but perhaps we need to do more at the documentation level?
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews
1. Creation of the connection. https://github.com/couchbase/libcouchbase/blob/master/include/libcouchbase/couchbase.h#L72-L76
This means that you can specify a list of the nodes, where first will be used for immediate connection, others for list of the backup nodes.
2. On cluster upgrade, each time cluster push updated configuration, the connection instances save list of the known nodes, and if the initial node fails, it picks next from that list.
In PHP client you can just use host parameter to pass the list of the nodes