What do I set MONGO_OPLOG_URL to in Meteor Up?

3.2k Views Asked by At

I have created a database and a user with oplog access in Compose.io.

The URI I get looks like this:

mongodb://<user>:<password>@lamppost.11.mongolayer.com:10022,lamppost.10.mongolayer.com:10024/cardmaker?replicaSet=set-<bunchOfDigits>

Knowing this, what do I set as MONGO_URL and MONGO_OPLOG_URL in mup.json?

There is literally no documentation on this. :(

1

There are 1 best solutions below

3
On BEST ANSWER

Let's say database name: mydatabase username: user password: 123456

It will be looked like this:

 “MONGO_URL”: “mongodb://user:[email protected]:10240,candidate.0.mongolayer.com:10240/mydatabase?replicaSet=set-0123456789″,
 “MONGO_OPLOG_URL”: “mongodb://user:[email protected]:10240,candidate.0.mongolayer.com:10240/local?authSource=mydatabase”

Source: Meteor Up Apps Deployment and Oplog-tailing