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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    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

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 40 weeks, 5 days ago