Investigate short-term improvements to TransactionCoordinator to reduce the number of threads it spawns

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Replication
    • Repl 2024-06-24
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      One idea would be to defer the construction of the TransactionCoordinator object until the coordinateCommitTransaction command is received. This way for a single-transaction or other transaction commit types which don't require two-phase commit the system wouldn't need to run TransactionCoordinator::_done() as a task on the fixed executor to simply destroy the TransactionCoordinator object and decrement counters.

              Assignee:
              Unassigned
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated: