Changeset 31305
- Timestamp:
- 2017-01-20T14:50:12+13:00 (7 years ago)
- Location:
- other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-setup-local-disk-all.sh
r31302 r31305 15 15 16 16 ssh $mongodb_host "if [ ! -d $local_dbdir ] ; then mkdir $local_dbdir ; fi" 17 ssh $mongodb_host "if [ ! -d $local_dbdir/config-metadata ] ; then mkdir $local_dbdir/config-metadata ; fi"17 ## ssh $mongodb_host "if [ ! -d $local_dbdir/config-metadata ] ; then mkdir $local_dbdir/config-metadata ; fi" 18 18 19 19 done -
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-start-configservers.sh
r31303 r31305 1 1 #!/bin/bash 2 3 repl_set=htrc-ef-config-metadata 2 4 3 5 for h in $MONGODB_CONFIG_HOSTS ; do 4 6 echo "* Starting MongoDB Config Server on $h:$MONGODB_CONFIG_PORT" 5 ssh $h "mongod --configsvr --dbpath \"$MONGODB_DBDIR/config-metadata\" --port $MONGODB_CONFIG_PORT > mongodb-output-$h-config.log &" 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 &" 6 11 done 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 -
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-start-routerservers.sh
r31303 r31305 1 1 #!/bin/bash 2 3 repl_set="htrc-ef-config-metadata" 2 4 3 5 configdb_arg="" … … 15 17 echo "* Starting MongoDB Router Server on $h:$MONGODB_ROUTER_PORT" 16 18 17 echo ssh $h "mongos --configdb$configdb_arg --port $MONGODB_ROUTER_PORT > mongodb-output-$h-router.log &"19 ssh $h "mongos --configdb $repl_set/$configdb_arg --port $MONGODB_ROUTER_PORT > mongodb-output-$h-router.log &" 18 20 19 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 -
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SETUP.bash
r31303 r31305 55 55 export MONGODB_CONFIG_HOSTS="gc0 gc1 gc2" 56 56 export MONGODB_CONFIG_PORT="27019" 57 57 58 export MONGODB_ROUTER_HOSTS="gc3 gc4 gc5" 58 59 export MONGODB_ROUTER_PORT="27017" 59 export MONGODB_SHARD_HOSTS="gc6 gc7" 60 61 export MONGODB_REPLSET1_HOSTS="gc6 gc7" 62 export MONGODB_REPLSET2_HOSTS="gc8 gc9" 63 export MONGODB_REPLSET_PORT="27017" 64 ##export MONGODB_REPLSET_ARRAY=("$MONGODB_REPLSET1_HOSTS" "$MONGODB_REPLSET2_HOSTS") 65 export MONGODB_REPLSET_METALIST="MONGODB_REPLSET1_HOSTS MONGODB_REPLSET2_HOSTS" 66 export MONGODB_SHARD_HOSTS="$MONGODB_REPLSET1_HOSTS $MONGODB_REPLSET2_HOSTS" 67 60 68 source SETUP/setup-mongodb.bash 61 69
Note:
See TracChangeset
for help on using the changeset viewer.