Hello @Kushagra_Kesav

Thanx for your reply. To answer your question, basically I intend to do this because there was an issue raised on my database that leads to shutdown of my Primary Node. This issue was raised because multiple connections were opened and later they should be close immediately but they weren’t closed, because of which multiple operations were waited in execution queue and increased the load on my database cluster.
And as mongodb doesn’t automatically closes these connections, I thought to build a system that could help me on closing those connections by restricting each IP Addresses to certain amount of connections, if exceeds than needed to be killed.