Browse Source

Upload files to 'json_files'

master
parent
commit
4695d6fbba
  1. 19
      json_files/rep_set1_members.js
  2. 19
      json_files/rep_set2_members.js
  3. 19
      json_files/rep_set3_members.js
  4. 19
      json_files/rep_set4_members.js
  5. 1
      json_files/slaveok.js

19
json_files/rep_set1_members.js

@ -0,0 +1,19 @@
rs.initiate(
{
"_id":"rep-set1",
"members":[
{
"_id":0,
"host":"primary1:27017"
},
{
"_id":1,
"host":"secondary1_1:27017"
},
{
"_id":2,
"host":"secondary1_2:27017"
}
]
}
);

19
json_files/rep_set2_members.js

@ -0,0 +1,19 @@
rs.initiate(
{
"_id":"rep-set2",
"members":[
{
"_id":0,
"host":"primary2:27017"
},
{
"_id":1,
"host":"secondary2_1:27017"
},
{
"_id":2,
"host":"secondary2_2:27017"
}
]
}
);

19
json_files/rep_set3_members.js

@ -0,0 +1,19 @@
rs.initiate(
{
"_id":"rep-set3",
"members":[
{
"_id":0,
"host":"primary3:27017"
},
{
"_id":1,
"host":"secondary3_1:27017"
},
{
"_id":2,
"host":"secondary3_2:27017"
}
]
}
);

19
json_files/rep_set4_members.js

@ -0,0 +1,19 @@
rs.initiate(
{
"_id":"rep-set4",
"members":[
{
"_id":0,
"host":"primary4:27017"
},
{
"_id":1,
"host":"secondary4_1:27017"
},
{
"_id":2,
"host":"secondary4_2:27017"
}
]
}
);

1
json_files/slaveok.js

@ -0,0 +1 @@
rs.slaveOk
Loading…
Cancel
Save