I have 3 replicas setup across 3 vps. Each vps has ulimit -n of 1024. I think its not possible to change that limit. When I use this command in any vps in mongosh I get 767 which is low given I will need at least 1000 for a single vps instead of 1000 with 3 vps combined. So I need help. Is it possible to change db.serverStatus().connections such that for each vps it has available connections separate or something like that or push overall avaiable connections higher than 767, preferable 1500 or 2000.
rs0 [primary] test> db.serverStatus().connections
{
current: 52,
available: 767,
totalCreated: 173,
rejected: 0,
active: 17,
threaded: 52,
exhaustIsMaster: 0,
exhaustHello: 15,
awaitingTopologyChanges: 15
}
rs0 [primary] test>
If these nodes werent replicas but single independent nodes, I think they would have separate available connections such that it wont go low (each vps will have around 400-600 out of 1000) but it seems here its shared connections but i cant run independent nodes.