How to enable authentication and authorization in mongoDB is little bit tricky. There are different options available , and when different options and you have to choose one of them is little bit tricky. So , choose one of them, either plain config file or YAML supported file or any another one.
Continue reading Configuration of mongoDB Replicaset
How to write a shell script so that you can spawn different mongod process on different post in single system and add replica set of mongodb. This is very easy to do and write in linux shell script instead of writing one by on linux terminal.
Continue reading Linux shell script to instantiate different mongod process
Security is the primary concerned for all level of stakeholder in the software industry, wherther you are developer, lead, project manager, business user, CXO level.
Continue reading MongoDB Security Questions Answers
If you are mongoDB admin you are interested to get some infomation regarding admin things in one place. I tried to collect few of the admin command and syntax in one place , you know all the syntax and command name is very difficult to collect in one place becuase requirment set for all the admin are different. This page is about the cheat sheet of mongoDB for mongoDB Admin pespective. A mongoDB admin use to do some job or activities in his/her life on day-to-day basis. In the day-to-day life usually few of the commands not remember on that particular time few may remember. For a mongoDB Admin the important is knowledge, I think not important of remembering of syntax and command. Help for syntax and command can be pull from different sources like google, notes.
Well, here Role is same role which you think for any database. There is no difference from traditional database. you can grant previledges to a perticular user on some perticular database. here , terminology ‘namespace’ and ‘database’ are same so please don’t confuse with these two terminologies.
Continue reading Roles in mongoDB
mongod.conf is a configuration file in
mongoDB which is being used to read by mongodb server while startup. So, when you run
service mongod start command on linux termincal , mongodb read this property from
/etc/mongod.conf by mongoDB server.
Continue reading mongod.conf yaml file format example
Although there are different way of getting index size and data size in mongDB. I’m trying to explain the different way of doing this.
Continue reading How to get Index and data size in mongoDB?
In mongoDB, you can log slow query log as per your convenient for monitoring of your mongoDB either for collections scan or index scan. Most of the time you have built index and your query taking more time as per your expecation , so set profiling level and log slow query. Sometimes, even though you have built index on perticular field but still taking more than the expected time, you can log those query by setting profiler.
Continue reading Profiling for Slow Query Log in MongoDB
Adding a Secondary node in running mongoDB replica set is very easy without downtime.
Continue reading How to add Secondary Member in running Replica Set in MongoDB