how to control the connections from mongos to shards

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.2.8
    • Component/s: Internal Code
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Kelsey Schubert
            Reporter:
            kimmy-github
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: