administration




Here is a simple script I’ve found to be quite helpful for monitoring the status of background index builds across shards on a system: var currentOps = db.currentOp(); if(!currentOps.inprog || currentOps.inprog.length < 1) { print("No operations in progress"); } else { for(o in currentOps.inprog) { var op = currentOps.inprog[o]; if(op.msg […]

MongoDB script to check the status of background index builds