File tree Expand file tree Collapse file tree 3 files changed +124
-0
lines changed
scripts/presets/travis/sharded_clusters Expand file tree Collapse file tree 3 files changed +124
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ case $DEPLOYMENT in
7
7
${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/sharded_clusters/cluster.json start > /tmp/mo-result.json
8
8
cat /tmp/mo-result.json | tail -n 1 | php -r ' echo json_decode(file_get_contents("php://stdin"))->mongodb_uri;' > /tmp/uri.txt
9
9
;;
10
+ SHARDED_CLUSTER_RS)
11
+ ${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/sharded_clusters/cluster_replset.json start > /tmp/mo-result.json
12
+ cat /tmp/mo-result.json | tail -n 1 | php -r ' echo json_decode(file_get_contents("php://stdin"))->mongodb_uri;' > /tmp/uri.txt
13
+ ;;
10
14
STANDALONE_AUTH)
11
15
${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/standalone/standalone-auth.json start > /tmp/mo-result.json
12
16
cat /tmp/mo-result.json | tail -n 1 | php -r ' echo json_decode(file_get_contents("php://stdin"))->mongodb_auth_uri;' > /tmp/uri.txt
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ matrix:
31
31
- php : 7.2
32
32
env :
33
33
- DEPLOYMENT=SHARDED_CLUSTER
34
+ - php : 7.2
35
+ env :
36
+ - DEPLOYMENT=SHARDED_CLUSTER_RS
34
37
- php : 7.2
35
38
env :
36
39
- DEPLOYMENT=STANDALONE_AUTH
Original file line number Diff line number Diff line change
1
+ {
2
+ "configsvrs" : [ {
3
+ "members" : [
4
+ {
5
+ "procParams" : {
6
+ "dbpath" : " /tmp/SHARDED-RS/CFG/4490" ,
7
+ "logpath" : " /tmp/SHARDED-RS/CFG/4490/mongod.log" ,
8
+ "ipv6" : true ,
9
+ "journal" : true ,
10
+ "logappend" : true ,
11
+ "nssize" : 1 ,
12
+ "port" : 4490 ,
13
+ "bind_ip_all" : true ,
14
+ "smallfiles" : true
15
+ }
16
+ },
17
+ {
18
+ "procParams" : {
19
+ "dbpath" : " /tmp/SHARDED-RS/CFG/4491" ,
20
+ "logpath" : " /tmp/SHARDED-RS/CFG/4491/mongod.log" ,
21
+ "ipv6" : true ,
22
+ "journal" : true ,
23
+ "logappend" : true ,
24
+ "nssize" : 1 ,
25
+ "port" : 4491 ,
26
+ "bind_ip_all" : true ,
27
+ "smallfiles" : true
28
+ }
29
+ },
30
+ {
31
+ "procParams" : {
32
+ "dbpath" : " /tmp/SHARDED-RS/CFG/4492" ,
33
+ "logpath" : " /tmp/SHARDED-RS/CFG/4492/mongod.log" ,
34
+ "ipv6" : true ,
35
+ "journal" : true ,
36
+ "logappend" : true ,
37
+ "nssize" : 1 ,
38
+ "port" : 4492 ,
39
+ "bind_ip_all" : true ,
40
+ "smallfiles" : true
41
+ }
42
+ }
43
+ ]
44
+ } ],
45
+ "id" : " cluster_rs" ,
46
+ "shards" : [
47
+ {
48
+ "id" : " cluster-rs-sh01" ,
49
+ "shardParams" : {
50
+ "id" : " sh01-rs" ,
51
+ "members" : [
52
+ { "procParams" : {
53
+ "dbpath" : " /tmp/SHARDED-RS/SHARD1/4400" ,
54
+ "logpath" : " /tmp/SHARDED-RS/SHARD1/4400/mongod.log" ,
55
+ "ipv6" : true ,
56
+ "journal" : true ,
57
+ "logappend" : true ,
58
+ "nssize" : 1 ,
59
+ "port" : 4400 ,
60
+ "bind_ip_all" : true ,
61
+ "smallfiles" : true
62
+ } },
63
+ { "procParams" : {
64
+ "dbpath" : " /tmp/SHARDED-RS/SHARD1/4401" ,
65
+ "logpath" : " /tmp/SHARDED-RS/SHARD1/4401/mongod.log" ,
66
+ "ipv6" : true ,
67
+ "journal" : true ,
68
+ "logappend" : true ,
69
+ "nssize" : 1 ,
70
+ "port" : 4401 ,
71
+ "bind_ip_all" : true ,
72
+ "smallfiles" : true
73
+ } }
74
+ ]
75
+ }
76
+ },
77
+ {
78
+ "id" : " cluster-rs-sh02" ,
79
+ "shardParams" : {
80
+ "id" : " sh02-rs" ,
81
+ "members" : [
82
+ { "procParams" : {
83
+ "dbpath" : " /tmp/SHARDED-RS/SHARD2/4410" ,
84
+ "logpath" : " /tmp/SHARDED-RS/SHARD2/4410/mongod.log" ,
85
+ "ipv6" : true ,
86
+ "journal" : true ,
87
+ "logappend" : true ,
88
+ "nssize" : 1 ,
89
+ "port" : 4410 ,
90
+ "bind_ip_all" : true ,
91
+ "smallfiles" : true
92
+ } },
93
+ { "procParams" : {
94
+ "dbpath" : " /tmp/SHARDED-RS/SHARD2/4411" ,
95
+ "logpath" : " /tmp/SHARDED-RS/SHARD2/4411/mongod.log" ,
96
+ "ipv6" : true ,
97
+ "journal" : true ,
98
+ "logappend" : true ,
99
+ "nssize" : 1 ,
100
+ "port" : 4411 ,
101
+ "bind_ip_all" : true ,
102
+ "smallfiles" : true
103
+ } }
104
+ ]
105
+ }
106
+ }
107
+ ],
108
+ "routers" : [
109
+ {
110
+ "logpath" : " /tmp/SHARDED-RS/ROUTER/4430/mongod.log" ,
111
+ "ipv6" : true ,
112
+ "logappend" : true ,
113
+ "port" : 4430 ,
114
+ "bind_ip_all" : true
115
+ }
116
+ ]
117
+ }
You can’t perform that action at this time.
0 commit comments