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

Last change on this file since 31303 was 31303, checked in by davidb, 7 years ago

Adding in support to start and stop router server

  • Property svn:executable set to *
File size: 428 bytes
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 repository browser.