You can allow ECS instances to connect to your ApsaraDB for MongoDB instance by using Data Management or Mongo shell. This article takes the scenarios using Mongo shell as examples.
Use Mongo shell to connect to the instance, and run
mongo-test:PRIMARY> db.currentOp() to view operations currently performed by the instance. Typical cases that cause high load on an instance:
The number of concurrent requests is too large, which exceeds the service capability of the current instance type.
Indexes are not properly created. When you query sets, the whole table is scanned or sorted.
The instance is running MapReduce or aggregation tasks that need massive computation workload.
Ongoing operations contain the opid field. You can kill an operation using the corresponding opid field.