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:
844 bytes
|
Rev | Line | |
---|
[31302] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[31305] | 3 | repl_set=htrc-ef-config-metadata
|
---|
| 4 |
|
---|
[31302] | 5 | for h in $MONGODB_CONFIG_HOSTS ; do
|
---|
[31303] | 6 | echo "* Starting MongoDB Config Server on $h:$MONGODB_CONFIG_PORT"
|
---|
[31305] | 7 | repl_dir="$MONGODB_DBDIR/$repl_set-$h"
|
---|
| 8 | ssh $h "if [ ! -d $repl_dir ] ; then mkdir $repl_dir ; fi"
|
---|
| 9 |
|
---|
| 10 | ssh $h "mongod --configsvr --replSet $repl_set --dbpath \"$repl_dir\" --port $MONGODB_CONFIG_PORT > mongodb-output-$h-config.log &"
|
---|
[31302] | 11 | done
|
---|
[31305] | 12 |
|
---|
| 13 | # mongod --configsvr --port 26050 --logpath /var/lib/mongodb/shardedcluster/log.cfg0 --logappend --dbpath /var/lib/mongodb/shardedcluster/cfg0 --fork
|
---|
| 14 | # mongod --configsvr --port 26051 --logpath /var/lib/mongodb/shardedcluster/log.cfg1 --logappend --dbpath /var/lib/mongodb/shardedcluster/cfg1 --fork
|
---|
| 15 | # mongod --configsvr --port 26052 --logpath /var/lib/mongodb/shardedcluster/log.cfg2 --logappend --dbpath /var/lib/mongodb/shardedcluster/cfg2 --fork |
---|
Note:
See
TracBrowser
for help on using the repository browser.