I have enabled profiling for mongodb cluster with 3 servers by using below configuration: operationProfiling: mode: all slowOpThresholdMs: 200 slowOpSampleRate: 0.98
2.In a replica of three, I am able to run queries against profile collection only on primary server. What is the reason for this?
Any help in resolving above queries is highly appreciated.
There should be a 'system.profile' collection for each database where operations for that database are entered.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.