Use atomics to reduce contention in hasSeenKeys()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.0-rc6, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4
    • Service arch 2020-05-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As part of processing incoming messages, mongos calls into appendRequiredFieldsToResponse through _processMessage (see here). Every mongos client thread spends about %5.8 of its time in this function while running a 100% read workload.

      We should investigate possible modifications to this function to reduce its performance footprint on the critical execution path.

              Assignee:
              Amirsaman Memaripour
              Reporter:
              Amirsaman Memaripour
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: