Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-756

Allow option to disable dnssrv lookups

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.3
    • Component/s: library
    • Labels:
      None

      Description

      Add an option to the connection string to disable dnssrv lookups. This may speed up certain scripts by reducing the latency for the lookups (which can be upwards of 50ms!).

      The option is `dnssrv=` true|false|on|off|0|!0

        Attachments

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

          Activity

          Hide
          mnunberg Mark Nunberg (Inactive) added a comment -

          Note, resolution of this issue is potentially pending SDK RFCs.

          Show
          mnunberg Mark Nunberg (Inactive) added a comment - Note, resolution of this issue is potentially pending SDK RFCs.
          Hide
          avsej Sergey Avseyev added a comment -

          so it will end up with couchbase+dnssrv://host.example.com/mybucket?dnssrv=true? or +dnssrv will be deprecated?

          Show
          avsej Sergey Avseyev added a comment - so it will end up with couchbase+dnssrv://host.example.com/mybucket?dnssrv=true ? or +dnssrv will be deprecated?
          Hide
          mnunberg Mark Nunberg (Inactive) added a comment -

          The couchbase+dnssrv scheme is considered to be private. We use it in lcb (mainly for testing/debugging) to force dnssrv-or-nothing behavior. This is different than the dnssrv option which allows to completely skip the lookup. Consider something like this:

          • `couchbase+dnssrv://` - Will fail UNLESS there is a SRV record
          • (No Scheme - single host) - Will ATTEMPT to locate an SRV record, will fall back to hostname
          • dnssrv=off - will NOT ATTEMPT to locate the SRV record. Will always use hostname
          Show
          mnunberg Mark Nunberg (Inactive) added a comment - The couchbase+dnssrv scheme is considered to be private. We use it in lcb (mainly for testing/debugging) to force dnssrv-or-nothing behavior. This is different than the dnssrv option which allows to completely skip the lookup. Consider something like this: `couchbase+dnssrv://` - Will fail UNLESS there is a SRV record (No Scheme - single host) - Will ATTEMPT to locate an SRV record, will fall back to hostname dnssrv=off - will NOT ATTEMPT to locate the SRV record. Will always use hostname
          Hide
          avsej Sergey Avseyev added a comment -

          Looks sane to me

          Show
          avsej Sergey Avseyev added a comment - Looks sane to me

            People

            • Assignee:
              mnunberg Mark Nunberg (Inactive)
              Reporter:
              mnunberg Mark Nunberg (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.