We are running mongo 3.2 cluster on linux servers and we are having a problem dealing with too many connections. We checked and saw that the same machine opens alot of connections from inside cluster machines(not from other users) and doesnt close them all. The cluster was created by MMS manager using automation agent. After about 1K connections the mongo got too loaded and have low response. We succeeded solving it by restart the process on the problematic server, but we are looking for a long term solution to fix the connections problem:
- How to close the connections without restart the process on the server?
- How to prevent such situation of not closing the connections?
- What can cause this?
Thank you.