Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-70

Need to be able to pass connection pool/list to Create

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: library
    • Labels:
      None
    • Environment:
      All development platforms

      Description

      Need to be able to specify more than one possible URL for connection and pass that in when creating a new couchbase client, to avoid failure to connect if node is down.

      Workaround sample code needed too in interim. Could follow PHP model:

      while (!client)
      ...attempt connection from URLs in array

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

        Activity

        Hide
        john John Zablocki (Inactive) added a comment -

        This is already possible. In config, you can specify multiple URIs or in an instance of the configuration object, you specify multiple URIs.

        <servers bucket="private" bucketPassword="private">
        <add uri="http://10.0.0.33:8091/pools/default"/>
        <add uri="http://10.0.0.34:8091/pools/default"/>
        </servers>

        Show
        john John Zablocki (Inactive) added a comment - This is already possible. In config, you can specify multiple URIs or in an instance of the configuration object, you specify multiple URIs. <servers bucket="private" bucketPassword="private"> <add uri="http://10.0.0.33:8091/pools/default"/> <add uri="http://10.0.0.34:8091/pools/default"/> </servers>
        Hide
        kzeller kzeller added a comment -

        I see. This is a a bit buried in the Getting Started/Tutorial:

        http://www.couchbase.com/docs/couchbase-sdk-net-1.0/getting-started-hello.html

        I'll add it specifically in the Connection section of the .Net Language Ref....

        Show
        kzeller kzeller added a comment - I see. This is a a bit buried in the Getting Started/Tutorial: http://www.couchbase.com/docs/couchbase-sdk-net-1.0/getting-started-hello.html I'll add it specifically in the Connection section of the .Net Language Ref....
        Hide
        john John Zablocki (Inactive) added a comment -
        Show
        john John Zablocki (Inactive) added a comment - It's discussed in the configuration appendix - http://www.couchbase.com/docs/couchbase-sdk-net-1.1/couchbase-sdk-net-configuration.html .
        Hide
        wayne Wayne Siu added a comment -

        Reopening the ticket for administrative reason.

        Show
        wayne Wayne Siu added a comment - Reopening the ticket for administrative reason.

          People

          • Assignee:
            john John Zablocki (Inactive)
            Reporter:
            kzeller kzeller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes