Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-542

Add SG-specific cbgt cfg implementation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.7.0
    • None
    • SyncGateway
    • Security Level: Public
    • None

    Description

      Sync Gateway is currently using cbgt's bucket-based config storage (cfgCB). There are possible optimizations based on the fact that Sync Gateway can be expected to already have a connection to the bucket, and a full DCP stream (caching stream) running.

      A custom config manager would have the following enhancements:

      1. Use Sync Gateway's existing gocb bucket connection. This avoids the authentication issues currently present for cfgCB (no x.509), but also simplifies initialization.
      2. Check for the cfg key (or keys) when processing the caching feed, and use that to trigger config change notifications, instead of running a separate DCP stream for the vbucket. Also avoids cfgCB's dependency on cbdatasource.
      3. Need to support Stop() on database.Close()

      Attachments

        Issue Links

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

          Activity

            People

              adamf Adam Fraser
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty