[DOCS-15836] connPoolMaxShardedConnsPerHost it's documented but does not work after MongoDB 5.0 onwards. Created: 23/Jan/23  Updated: 05/Feb/24  Resolved: 05/Feb/24

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: 5.0.0, 6.0.0
Fix Version/s: 5.0.0, 6.0.0

Type: Task Priority: Minor - P4
Reporter: Zelmar Michelini Assignee: Caleb Thompson
Resolution: Done Votes: 0
Labels: backlog, bug, release
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 week, 2 days ago
Story Points: 2

 Description   

Current Scenario:

We found the connPoolMaxShardedConnsPerHost parameter still exists 5.0 and 6.0 documentation:

https://www.mongodb.com/docs/v6.0/reference/parameters/#mongodb-parameter-param.connPoolMaxShardedConnsPerHost

https://www.mongodb.com/docs/v5.0/reference/parameters/#mongodb-parameter-param.connPoolMaxShardedConnsPerHost

 

But if you try to set the value on those versions, you get an "unrecognized parameter" error:

> db.adminCommand(    { setParameter: 1, connPoolMaxShardedConnsPerHost:250} )
{
        "ok" : 0,
        "errmsg" : "attempted to set unrecognized parameter [connPoolMaxShardedConnsPerHost], use help:true to see options "
}

 

 
mongod --setParameter connPoolMaxShardedConnsPerHost=100 --quiet
{"t":

{"$date":"2023-01-23T19:27:29.467Z"}

,"s":"F", "c":"CONTROL", "id":20574, "ctx":"-","msg":"Error during global initialization","attr":{"error":

{"code":2,"codeName":"BadValue","errmsg":"Unknown --setParameter 'connPoolMaxShardedConnsPerHost'"}

}}
And we can retrieve its value on 4.2.8 but we can't on 5.0.13 or 6.0.3:
 
v4.2.8:
> db.adminCommand( { getParameter : '*' } ).connPoolMaxShardedConnsPerHost
200
>
 
v5.0.13:
> db.adminCommand( { getParameter : '*' } ).connPoolMaxShardedConnsPerHost
>
 
v6.0.3
> db.adminCommand( { getParameter : '*' } ).connPoolMaxShardedConnsPerHost
>

 

 

It seems like the parameter doesn't exist after 5.0 but there is no release notes mentioning that and the parameter is mentioned in 5.0 documentation.



 Comments   
Comment by Caleb Thompson [ 29/Jan/24 ]

https://github.com/10gen/docs-mongodb-internal/pull/6053

Generated at Thu Feb 08 08:13:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.