You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
322 B
19 lines
322 B
rs.initiate(
|
|
{
|
|
"_id":"rep-set1",
|
|
"members":[
|
|
{
|
|
"_id":0,
|
|
"host":"primary1:27017"
|
|
},
|
|
{
|
|
"_id":1,
|
|
"host":"secondary1_1:27017"
|
|
},
|
|
{
|
|
"_id":2,
|
|
"host":"secondary1_2:27017"
|
|
}
|
|
]
|
|
}
|
|
);
|