Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-60

how to provide redundancy with setting up client not clear

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: docs
    • Security Level: Public
    • Labels:
      None

      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?

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        avsej Sergey Avseyev added a comment -

        Currently PHP client uses libcouchbase as the backend. And there are two points where it can load the list of backup URLs.

        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

        Show
        avsej Sergey Avseyev added a comment - Currently PHP client uses libcouchbase as the backend. And there are two points where it can load the list of backup URLs. 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

          People

          • Assignee:
            ingenthr Matt Ingenthron
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes