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

[2.8.3 Backport] Limit the number of open N1QL connections

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.8.3
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 84
    • 3

    Description

      Sync Gateway limits the number of concurrent view queries, to avoid too many open HTTP requests between SG and the view endpoint, which can result in SG running out of available sockets.

      The same needs to be done for N1QL queries, as the go SDK is also issuing a separate HTTP request for each query.

      Since SG won't be issuing view and N1QL requests against the same bucket, the existing waitForAvailableViewOp/releaseViewOp can be reused for N1QL queries.

      Attachments

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

        Activity

          People

            jacques.rascagneres Jacques Rascagneres
            jacques.rascagneres Jacques Rascagneres
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty