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

Revision 31303, 428 bytes (checked in by davidb, 3 years ago)

Adding in support to start and stop router server

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3configdb_arg=""
4
5for h in $MONGODB_CONFIG_HOSTS ; do
6  if [ "x$configdb_arg" != "x" ] ; then
7    configdb_arg="$configdb_arg,"
8  fi
9
10  configdb_arg="$configdb_arg$h:$MONGODB_CONFIG_PORT"
11done
12
13
14for h in $MONGODB_ROUTER_HOSTS ; do
15  echo "* Starting MongoDB Router Server on $h:$MONGODB_ROUTER_PORT"
16
17  echo ssh $h "mongos --configdb $configdb_arg --port $MONGODB_ROUTER_PORT > mongodb-output-$h-router.log &"
18
19done
Note: See TracBrowser for help on using the browser.