|
Each "replicaSets" element in the automation cluster configuration can now take an optional "force" field (haha) which itself takes an object with a required "currentVersion" field. If specified, automation will force a reconfiguration of the replica set if and only if the current version of the replica set configuration equals that specified by "currentVersion". This is useful if a replica set has lost a majority of its members and the user wants to reconfigure the replica without the lost members.
Example:
"replicaSets": [
|
{
|
"_id": "rs1",
|
"members": [
|
{
|
"_id": 0,
|
"host": "bar"
|
},
|
{
|
"_id": 1,
|
"host": "baz"
|
},
|
{
|
"_id": 2,
|
"host": "foo",
|
"arbiterOnly" : true
|
}
|
],
|
"force": { "currentVersion": 5 }
|
}
|
],
|
|