Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-11926

defined and reliable behavior needed when connections are exhausted

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • backlog
    • 3.0-Beta, 2.5.1, 3.0
    • memcached
    • Security Level: Public
    • None

    Description

      In the scenario that a user scales their client libraries or other connections beyond the maximum number of allowed connections, various services (K-V, ns_server, views) should signal the exhaustion of resources in a reliable way and we should document and test to that.

      For K-V, I believe the current situation is that after we hit max connections, new connections will be accepted by the process but immediately dropped. I know memcached has a few different options here, like dropping an older connection.

      I believe that for K-V, we should consider accept()ing the connection and then perhaps introduce a new error code that indicates connection exhaustion followed by shutdown() on the connection. This way the client library and other parts of the system can at least log the error appropriately. I'm open to other suggestions from the component owners on how this should be fixed/documented though.

      I believe I filed this before, but can't find it, and it came up in discussion of MB-11066

      For other services, I believe MB-8211 covers the need since right now there is no maximum.

      p.s.: I don't know that I got the right components here. please adjust as required.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              ingenthr Matt Ingenthron
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty