Last change
on this file since 31307 was 31305, checked in by davidb, 7 years ago |
Next good commit point. Initial testing of shard replset scripts
|
-
Property svn:executable
set to
*
|
File size:
813 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | repl_set="htrc-ef-config-metadata"
|
---|
4 |
|
---|
5 | configdb_arg=""
|
---|
6 |
|
---|
7 | for h in $MONGODB_CONFIG_HOSTS ; do
|
---|
8 | if [ "x$configdb_arg" != "x" ] ; then
|
---|
9 | configdb_arg="$configdb_arg,"
|
---|
10 | fi
|
---|
11 |
|
---|
12 | configdb_arg="$configdb_arg$h:$MONGODB_CONFIG_PORT"
|
---|
13 | done
|
---|
14 |
|
---|
15 |
|
---|
16 | for h in $MONGODB_ROUTER_HOSTS ; do
|
---|
17 | echo "* Starting MongoDB Router Server on $h:$MONGODB_ROUTER_PORT"
|
---|
18 |
|
---|
19 | ssh $h "mongos --configdb $repl_set/$configdb_arg --port $MONGODB_ROUTER_PORT > mongodb-output-$h-router.log &"
|
---|
20 |
|
---|
21 | done
|
---|
22 |
|
---|
23 | # mongos --configdb juan-mongodbspain:26050,juan-mongodbspain:26051,juan-mongodbspain:26052 --fork --logappend --logpath /var/lib/mongodb/shardedcluster/log.mongos0
|
---|
24 | # mongos --configdb juan-mongodbspain:26050,juan-mongodbspain:26051,juan-mongodbspain:26052 --fork --logappend --logpath /var/lib/mongodb/shardedcluster/log.mongos1 --port 26061
|
---|
Note:
See
TracBrowser
for help on using the repository browser.