I'm using a 3 node replicaset with 2 data nodes(version 2.6.1 and 2.6.3) and 1 arbiter node. I get frequent alerts on number of connections >1000, whereas total databases are about 400 and also I'm using connection pooling with nodeJS.
With another standalone instance where number of databases are much more than that in first scenario I get number of connections are mostly less than 400.
How many connections can I expect normaly(so that I can decide a threshold)?
It depends on your application and how you have the driver configured.
A mongod process can handle up to 20,000 in 2.4 and technically an unlimited number in 2.6 (though practically speaking, since each connection uses memory, you won't be able to get up too high).
Replication only contributes a handful of extra connections (each replica node talks to each other replica node).
Have you checked the logs to see where these connections are coming from and what they are doing?
댓글 없음:
댓글 쓰기