root/other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-start-routerservers.sh @ 31307

Revision 31305, 0.8 KB (checked in by davidb, 3 years ago)

Next good commit point. Initial testing of shard replset scripts

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3repl_set="htrc-ef-config-metadata"
4
5configdb_arg=""
6
7for 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"
13done
14
15
16for 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
21done
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 browser.