Ideally, db.serverStatus() gives the all the server related information including storage engine details, however below command will specifically tell you the storage engine details. Connect to the respective Replica set member and execute below command. rs1:PRIMARY> db.serverStatus().storageEngine.name wiredTiger OR…
Distributed Consensus in MongoDB’s Replication System Hi MongoDB User, Take an hour to see how changes to MongoDB’s election protocal will lead to faster elections, more robust systems, and lay the groundwork for new replication features going forward….
Below shell script will be useful to create a MongoDB’s sharded environment on a single sever/multiple servers depending on your requirement. Things to remember to execute below automated script. 1) We should have required privileges to the user on your…
Cohort analysis, retention, and churn are some of the key metrics in company building. But this isn’t just another article about cohort analysis. If you’re a seasoned data scientist that already knows the importance of the topic and want to skip the introduction, you can jump to…
I first heard of Spark in late 2013 when I became interested in Scala, the language in which Spark is written. Some time later, I did a fun data science project trying to predict survival on the Titanic. This turned out…
To collect the stats of all the collections in all databases from a mongo shell, you can run below query. db.getMongo().getDBNames().forEach(function (d) { print(“Database: ” + d ); var curr_db = db.getSiblingDB(d); printjson( curr_db.stats() ); curr_db.getCollectionNames().forEach(function(coll) { print(“.. collection: ”…
1) Know your OS version & OS bit type with following commands to download the MongoDB packages. [ root@dbversity.com #]more /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION=”Ubuntu 14.04.3 LTS” [ root@dbversity.com #] [ root@dbversity.com #]uname -a Linux srinivas-HP-G62-Notebook-PC 3.19.0-42-generic#48~14.04.1-Ubuntu SMP Fri Dec…
Since the moment Node.js was unveiled to the world, it has seen a fair share of both praise and criticism. The debate still continues, and may not end anytime soon. What we often overlook in these debates is that every programming…
The idea of Rapid Application Development (RAD) was born as a response to traditional waterfall development models. Many variations of RAD exist; for example, Agile development and the Rational Unified Process. However, all such models have one thing in common:…
Introduction JavaScript’s rising popularity has brought with it a lot of changes, and the face of web development today is dramatically different. The things that we can do on the web nowadays with JavaScript running on the server, as well…