Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17812

Rate-limit new client connection setup to avoid overwhelming bcrypt

    XMLWordPrintableJSON

Details

    Description

      A flood of reconnects can cause a ton of pain at the bcrypt phase of validating incoming connections. While this shouldn't happen during normal operations, we need a rate limit server side - if there's a bad client out there (version and/or configuration) that misbehaves, a way to cap the pain on a server is quite useful. Right now the only option is to cap the total connections which has other issues that aren't an ideal tradeoff (inability to connect, etc).

      Moving authentication requests to a small, separate pool will prevent starvation handling all other requests. If the authExecutor pool backs up it may cause authentication timeouts, but the clients should back off and retry while the rest of the system continues to make progress.

      Attachments

        Issue Links

          Activity

            People

              jmckenzie Josh McKenzie
              jmckenzie Josh McKenzie
              Josh McKenzie
              Caleb Rackliffe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: