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

how to control the connections from mongos to shards

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 3.2.8
    • Internal Code
    • None

    Description

      1、there are 10 same programs in different PC server,and the config parameters of one program is below:
      mongo.order.connectionsPerHost=100
      mongo.order.threadsAllowedToBlockForConnectionMultiplier=20
      mongo.order.connectTimeout=10000
      mongo.order.socketKeepAlive=true
      mongo.order.socketTimeout=15000
      mongo.order.writeConcern=MAJORITY

      2、when there are 10000 clients visit the 10 same programs at the same time,in order to get data; the 3 mongos get below 2000 connections in total;but
      one secondary of one shard get more than 6000 collections;I think there has some problems about the connections from mongos to shards;

      3 、I thried to modify parameter "connPoolMaxShardedConnsPerHost=10" in one mongos or one secondary of shard,but it doesn't work;so I want to know how to control the connections from mongos to shards

      4、The file "questions_TaskExecutorPool.log" is the log of the mongos,The file "shard.log" is the log of shard,The file "metrics.*" are diagnostic data
      Thank you very much

      Attachments

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            kimmy-github kimmy-github
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: