-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Mongo Replica Set for gate and mold #11
Comments
How Mongo distiguish read/write members of replica set: https://docs.mongodb.com/manual/applications/replication/ We probably just need to define primary replica, which will have the write previledge. |
Write concern is set during doc insertion time (or in a global config).
|
Read preference could be set to |
Actual replicaset setup on local: https://docs.mongodb.com/manual/tutorial/deploy-replica-set-for-testing/ |
Launching alpha (primary) replica:
bravo (secondary)
delta (secondary)
ReplicaSet config: rsconf = {
_id: "rs0",
members: [
{ _id: 0,
tags: { name: "alpha" },
priority: 10,
host: "localhost:27017" },
{ _id: 1,
tags: { name: "bravo" },
priority: 0,
host: "localhost:27018" },
{ _id: 2,
tags: { name: "delta" },
priority: 0,
host: "localhost:27019" }
]
} |
TODO:
|
A replica set needs to be setup
The text was updated successfully, but these errors were encountered: