I have configured MongoDB for Sitecore using a replica set. I set up keyfile access control and added a user. But I'm facing problems while creating connection strings.
Lets assume my replica set name is rsHelloWorld
with several mongod
instances: localhost:21017,localhost:21018,localhost:21019,localhost:21020,localhost:21021(arbitor)
username: mongo_admin
password: test@123
The default connection string in Sitecore is:
<add name="analytics" connectionString="mongodb://localhost/analytics" />
How to specify the connection string for my MongoDB database with a replica set and authentication?