Skip to content

Commit 8e67243

Browse files
committed
Add MongoDB 3.0 replica set test environment
1 parent d08d974 commit 8e67243

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

scripts/presets/replicaset-30.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"id": "REPLICASET_30",
3+
"name": "mongod",
4+
"members": [
5+
{
6+
"procParams": {
7+
"dbpath": "/tmp/REPLICASET/3100/",
8+
"ipv6": true,
9+
"logappend": true,
10+
"logpath": "/tmp/REPLICASET/3100/mongod.log",
11+
"nohttpinterface": true,
12+
"journal": true,
13+
"noprealloc": true,
14+
"nssize": 1,
15+
"port": 3100,
16+
"smallfiles": true,
17+
"setParameter": {"enableTestCommands": 1}
18+
},
19+
"rsParams": {
20+
"priority": 99,
21+
"tags": {
22+
"ordinal": "one",
23+
"dc": "pa"
24+
}
25+
},
26+
"server_id": "RS-30-one"
27+
},
28+
{
29+
"procParams": {
30+
"dbpath": "/tmp/REPLICASET/3101/",
31+
"ipv6": true,
32+
"logappend": true,
33+
"logpath": "/tmp/REPLICASET/3101/mongod.log",
34+
"nohttpinterface": true,
35+
"journal": true,
36+
"noprealloc": true,
37+
"nssize": 1,
38+
"port": 3101,
39+
"smallfiles": true,
40+
"setParameter": {"enableTestCommands": 1}
41+
},
42+
"rsParams": {
43+
"priority": 1.1,
44+
"tags": {
45+
"ordinal": "two",
46+
"dc": "nyc"
47+
}
48+
},
49+
"server_id": "RS-30-two"
50+
},
51+
{
52+
"procParams": {
53+
"dbpath": "/tmp/REPLICASET/3102/",
54+
"ipv6": true,
55+
"logappend": true,
56+
"logpath": "/tmp/REPLICASET/3002/mongod.log",
57+
"nohttpinterface": true,
58+
"journal": true,
59+
"noprealloc": true,
60+
"nssize": 1,
61+
"port": 3102,
62+
"smallfiles": true,
63+
"setParameter": {"enableTestCommands": 1}
64+
},
65+
"rsParams": {
66+
"arbiterOnly": true
67+
68+
},
69+
"server_id": "RS-30-arbiter"
70+
}
71+
],
72+
"version": "30-release"
73+
}
74+

scripts/start-servers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function lap() {
2929
],
3030
"replicasets" => [
3131
"scripts/presets/replicaset.json",
32+
"scripts/presets/replicaset-30.json",
3233
],
3334
];
3435

0 commit comments

Comments
 (0)