Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8078

Sync Gateway 2.8.1: DCP feed connections now support connstr ?network=auto/default/external option

    XMLWordPrintable

Details

    Description

      Hi Docs,

       

      In SG 2.8.1, we improved the handling for a network override specified via the connection string to allow customers to override the automatic "external alternate address" heuristic (CBG-584)

       

      This option is already implemented in SDKs for KV and Query operations from Sync Gateway, but was not used for DCP connections, which meant in some network configurations, customers may be running their DCP connections over an unexpected network interface (see linked CBSE for more detail).

       

      The network option can be configured in the server connection string as a query parameter, like so:

      "server": "couchbases://my-cbs-server?network=external"
      

       

      The default value for this, if not specified is "auto", which uses the same automatic heuristic prior to 2.8.1 - which is based on the host specified in the server option.
      The option can be set to "external" to explicitly force the DCP connections to use the configured external alternate address,
      Or "default", to force the use of the default internal networking.

      Attachments

        Issue Links

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

          Activity

            ben.brooks Ben Brooks added a comment -

            Forgot to mention the ticket in the description. This was done in CBG-1276

            ben.brooks Ben Brooks added a comment - Forgot to mention the ticket in the description. This was done in CBG-1276
            Ian.bridge Ian Bridge added a comment -

            EG –  For more information on using alternate addresses – see Couchbase Server's xref:server:learn:clusters-and-availability/connectivity.adoc#alternate-addresses[Alternate Addresses] documentation.

            Ian.bridge Ian Bridge added a comment - EG –  For more information on using alternate addresses – see Couchbase Server's xref:server:learn:clusters-and-availability/connectivity.adoc#alternate-addresses [Alternate Addresses] documentation.
            Ian.bridge Ian Bridge added a comment - Ben Brooks  does this change cover the issue? https://github.com/couchbase/docs-sync-gateway/pull/413  
            Ian.bridge Ian Bridge added a comment - Approved :: https://github.com/couchbase/docs-sync-gateway/pull/413 This commit is now included in the feature branch https://github.com/couchbase/docs-sync-gateway/pull/416  which is staged at https://ibsoln.github.io/stage/release281-0302/sync-gateway/2.8/sgw-whatsnew.html  

            People

              Ian.bridge Ian Bridge
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty