Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10172

Cache SASL server factories

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.23.0, 2.0.0-alpha, 3.0.0-alpha1
    • 2.3.0
    • ipc
    • None
    • Reviewed

    Description

      Performance for SASL server creation is atrocious. Sasl.createSaslServer does not cache the provider resolution for the factories. Factory resolution and server instantiation has 3 major contention points. During bursts of connections, one reader accepting a connection stalls other readers accepting connections, in turn stalling all existing connections handled by those readers.

      I benched 5 threads at 187 instances/s - total, not per thread. With this and another change, I've boosted it to 33K instances/s.

      Attachments

        1. HADOOP-10172.patch
          4 kB
          Daryn Sharp

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            daryn Daryn Sharp
            daryn Daryn Sharp
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment