, user my_database oplog_user local. URI test-shard (, 3 test-shard-[0-2]):
MONGO_URL="mongodb://user:PASS@test-shard-0.mongodb.net:27017,test-shard-1.mongodb.net:27017,test-shard-2.mongodb.net:27017/my_database?ssl=true&replicaSet=test-shard&authSource=admin"
MONGO_OPLOG_URL="mongodb://oplog_user:PASS@test-shard-0.mongodb.net:27017,test-shard-1.mongodb.net:27017,test-shard-2.mongodb.net:27017/local?ssl=true&replicaSet=test-shard&authSource=admin"
MongoDB Atlas ssl=true, admin. my_database, authsource=admin MONGO_URL authsource=my_database MONGO_OPLOG_URL. . .
MongoDB 3.6 Mongo node 3.0+ DNS-, MongoDB Atlas, :
MONGO_URL="mongodb+srv://user:PASS@foo.mongodb.net/my_database"
MONGO_OPLOG_URL="mongodb+srv://oplog_user:PASS@foo.mongodb.net/local"
The link above explains how this notation fills the arguments ssl, replicaSetand authSource. This is much better than the long lines above, and also means that you can scale your replica tuned up and down without having to reconfigure anything.
As mentioned in hwillson, use the packages facts-uiand facts-base(earlier facts) to see if there is any in your application oplogObserveDriver. If they are all pollingObserveDriver, then oplog is not configured correctly.
source
share