Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15344

Make replWriter thread pool size tunable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.7
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      RPL 7 08/10/15

      Description

      #ifdef MONGO_PLATFORM_64
          const int ReplSetImpl::replWriterThreadCount = 16;
          const int ReplSetImpl::replPrefetcherThreadCount = 16;
      #else
          const int ReplSetImpl::replWriterThreadCount = 2;
          const int ReplSetImpl::replPrefetcherThreadCount = 2;
      #endif
      

      These are reasonable default, but we can make them tunable (exporting them via serverParameter) so that people can tune according to their needs. This also facilitates perf testing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt.dannenberg Matt Dannenberg
              Reporter:
              davide.italiano Davide Italiano
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: