Skip to content

Instantly share code, notes, and snippets.

@tairov
Last active January 3, 2016 13:29
Show Gist options
  • Save tairov/8470218 to your computer and use it in GitHub Desktop.
Save tairov/8470218 to your computer and use it in GitHub Desktop.
db.currentOp().inprog.forEach ( function(d) { if (d.secs_running > 100) {printjson(d); db.killOp(d.opid); } } );
use admin;
db.runCommand( { logRotate : 1 } )
db.runCommand( { setParameter: 1, logLevel: 2 } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment