Hello folks, I need help with MongoDB traffic investigation and resizing system.profile in Percona Operator
Description:
I need to increase the size of the capped system.profile collection to capture more query history. Our cluster has intensive traffic, and most read load goes to secondaries, so the default 1 MB capped size is too small (we only see ~30 docs before rollover).
Environment:
-
Sharded cluster (2 shards)
-
Operator: 1.20.1
-
MongoDB: 7.0.18
-
PMM: 2.43.1
What I know:
MongoDB docs say:
To change the size of the
system.profilecollection on a secondary, you must stop the secondary, run it as a standalone, and then perform the steps above. When done, restart the standalone as a member of the replica set.
Questions:
-
How can I perform this migration using the Percona Operator?
- Is there a supported way to resize
system.profilewithout manually breaking the replica set?
- Is there a supported way to resize
-
Are there alternatives for traffic investigation that work well with Percona Operator and MongoDB 7? (QAN is super, but it can’t tell me the user/appName and where it came from primary or replica)
Expected Result:
- Resize
system.profileon all shards (including secondaries) to something like 100 -200MB. - Get a better picture of executed queries for troubleshooting index usage and query patterns.
