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

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.3
    • library
    • 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

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

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

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

          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?

          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
          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

          Looks sane to me

          avsej Sergey Avseyev added a comment - Looks sane to me

          People

            mnunberg Mark Nunberg (Inactive)
            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