Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9479

Docs for SERVER-25027: Configurable connection pools size for mongos

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • # Replies:
      5
    • Last comment by Customer:
      true

      Description

      Engineering Ticket Description:

      It would be nice if users could configure a outbound connection pools in a way as most of the drivers work. The use case is to do throttling of the amount of connections that hit the shards on the mongos level - e.g. if a number of requestes/active connections to mongos exceeds the specified threshold, some connections will have to wait for their turn to be served.

      Implementing this would mean that we need to expose the standard connection pool-related options such as:

      • maxPoolSize
      • waitQueueMultiple
      • waitQueueTimeoutMS

      Given that mongos is based on a C++ driver I presume that should be doable.

      Note on the implementation of this ticket

      To clarify, this commit exposes the connection pooling options that currently exist in mongos, rather than driver equivalent options.

      Added knobs include:

      • ShardingTaskExecutorPoolHostTimeoutMS
      • ShardingTaskExecutorPoolMaxSize,
      • ShardingTaskExecutorPoolMinSize,
      • ShardingTaskExecutorPoolRefreshRequirementMS
      • ShardingTaskExecutorPoolRefreshTimeoutMS

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  2 years, 31 weeks, 4 days ago
                  Date of 1st Reply: