|
Problem:
Profiling can be changed dynamically at runtime. However there are use cases when this need to be defined as a startup parameter and cannot be changed.
Use Case:
Jim is a security and compliance officer for Mega Corp. All operations that are executed against the financial database need to be logged for audit, compliance, fraud detection and other reasons. Jim need to enforce this policy and therefore wants to startup each mongodb with the shell equivalent of db.setProfilingLevel(2). However, to prevent a DBA from changing this level (and taking the database out of compliance), changing this level should be prevented through the shell and from a connected client.
|