Ignore:
Timestamp:
2017-01-20T14:50:12+13:00 (7 years ago)
Author:
davidb
Message:

Next good commit point. Initial testing of shard replset scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-start-configservers.sh

    r31303 r31305  
    11#!/bin/bash
     2
     3repl_set=htrc-ef-config-metadata
    24
    35for h in $MONGODB_CONFIG_HOSTS ; do
    46  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 &"
    611done
     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 TracChangeset for help on using the changeset viewer.