We will create same user in all replica servers which will be admin sudo mongod Key based authentication, that’s how replica sets will connect with each other.Password based authentication, that’s how clients will connect to mongo cluster.There are 2 types of authentication we need while setting up mongo replica Authentication If you are not sure who all will connect, then make it 0.0.0.0.If other instances are going to connect to this mongo directly, add those IPs as well.You need to add IP addresses and hostname of your cluster servers.Go to /etc/nfig file and edit bind ip settings as following.We will also secure our mongoDB with authentication.
0 Comments
Leave a Reply. |