bichonfrise74
unread,May 1, 2012, 5:13:06 PM5/1/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I have 3 nodes; one primary (A), and 2 secondaries (B, C).
I like to make A to be primary all the time because I like to increase
the oplog size. I tried to do this:
On B and C, I ran this:
> rs.freeze(600)
On A, I did this:
$ sudo /etc/init.d/mongodb restart
Then on B and C, I do this:
> db.adminCommand({replSetFreeze: 0})
I get inconsistent result where A is becoming secondary. Is this the
right way to do it?
So, my question is how do you tell server A to be primary temporary
for the time being, and B and C to be secondary.