Tag: mongo
MongoDB ReplicaSet install script
#!/bin/bash – #title :mongo_deploy.sh #description :Deploy MongoDB Master #author :totoshko88@gmail.com #date :20180622 #version :1.0 #usage :./mongo_deploy.sh #notes : #bash_version :4.3.48(1)-release … Continue reading MongoDB ReplicaSet install script
MongoDB Collection real size
var collectionNames = db.getCollectionNames(), stats = []; collectionNames.forEach(function (n) { stats.push(db[n].stats(1024 * 1024)); }); stats = stats.sort(function(a, b) { return … Continue reading MongoDB Collection real size