Errors similar to the following may be returned when you try to establish a connection by using the mongo shell:
2015-12-21T10:20:36.084+0800 I NETWORK Socket recv() errno:54 Connection reset by peer 18.104.22.168:27017 2015-12-21T10:20:36.087+0800 I NETWORK SocketException: remote: 22.214.171.124:27017 error: 9001 socket exception [RECV_ERROR] server [126.96.36.199:27017] 2015-12-21T10:20:36.087+0800 I NETWORK DBClientCursor::init call() failed
The ApsaraDB for MongoDB instance rejects the connection request of your application because its connections are at the upper limit and cannot connect your application.
- Restart the ApsaraDB for MongoDB instance to release all connections.
- Connect to a replica set instance by using the mongo shell.
- Analyze the source IP addresses of connections and limit the number of connections
from a client. For more information, see How to query and limit the number of connections.
Note If the source IP addresses are normal, perhaps your current ApsaraDB for MongoDB instance is unqualified for your business needs. You can upgrade the instance to increase the upper limit of connections allowed. For more information, see Configuration change overview.