Monday, 10 September 2018

Warnings for MongoDB


When we login to mongdb shell, there are different warnings seen as below, what do they mean, will it affect functioanlity?? See inline...



1. WARNING: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted.
     Well, this means that you have not enabled authentication to mongodb shell.
      You can configure either simple auth with username and password else you can configure
      cert based auth.
      Follow this  to enable auth


2. ** WARNING: You are running this process as the root user, which is not recommended.

     Well, we tend to configure MongoDB using root credentials, we need to configure this using user other than root. Please follow my other post to configure non root user for MongoDB 


3.  WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine  See http://dochub.mongodb.org/core/prodnotes-filesystem



   Well, this means that you are running MongoDB processes and file system on  ext3/4. MongoDB recommends it to be xfs as its a scale-out architecture and xfs do support it.
When you run mongodb processes on xfs partition, this warning will go away


No comments:

Post a Comment

Configure certificate based authentication for mongodb (MongoDB-X509 authentication)

A . Spawn mongod and mongos with no authentication first Configure MongoDB cluster, with no authentication, enabled using config files ...