Skip to content
Snippets Groups Projects
Commit cfcaf24c authored by Richard Carback's avatar Richard Carback
Browse files

Add roundBufferTimeout to 300s

parent f657a0fb
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ echo "STARTING SERVERS..." ...@@ -22,7 +22,7 @@ echo "STARTING SERVERS..."
for SERVERID in $(seq 5 -1 1) for SERVERID in $(seq 5 -1 1)
do do
IDX=$(($SERVERID - 1)) IDX=$(($SERVERID - 1))
SERVERCMD="../bin/server -v -i $IDX --config server-$SERVERID.yaml" SERVERCMD="../bin/server -v -i $IDX --roundBufferTimeout 300s --config server-$SERVERID.yaml"
if [ $SERVERID -eq 4 ]; then if [ $SERVERID -eq 4 ]; then
sleep 15 # This will force a CDE timeout sleep 15 # This will force a CDE timeout
fi fi
...@@ -31,10 +31,23 @@ do ...@@ -31,10 +31,23 @@ do
echo "$SERVERCMD -- $PIDVAL" echo "$SERVERCMD -- $PIDVAL"
done done
sleep 15 # Give servers some time to boot
# Start gateways
for GWID in $(seq 5 -1 1)
do
IDX=$(($GWID - 1))
GATEWAYCMD="../bin/gateway -v -i $IDX --config gateway-$GWID.yaml"
$GATEWAYCMD > $GATEWAYLOGS/gateway-$GWID.console 2>&1 &
PIDVAL=$!
echo "$GATEWAYCMD -- $PIDVAL"
done
jobs -p > results/serverpids jobs -p > results/serverpids
finish() { finish() {
echo "STOPPING SERVERS..." echo "STOPPING SERVERS AND GATEWAYS..."
# NOTE: jobs -p doesn't work in a signal handler # NOTE: jobs -p doesn't work in a signal handler
for job in $(cat results/serverpids) for job in $(cat results/serverpids)
do do
...@@ -49,7 +62,7 @@ finish() { ...@@ -49,7 +62,7 @@ finish() {
trap finish EXIT trap finish EXIT
trap finish INT trap finish INT
sleep 45 # FIXME: We should not need this, but the servers don't respond quickly sleep 15 # FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now. # enough on boot right now.
export GATEWAY="localhost:8444,localhost:8443,localhost:8442,localhost:8441,localhost:8440" export GATEWAY="localhost:8444,localhost:8443,localhost:8442,localhost:8441,localhost:8440"
...@@ -100,16 +113,6 @@ PIDVAL=$! ...@@ -100,16 +113,6 @@ PIDVAL=$!
echo $PIDVAL >> results/serverpids echo $PIDVAL >> results/serverpids
echo "$DUMMYCMD -- $PIDVAL" echo "$DUMMYCMD -- $PIDVAL"
# Start gateways
for GWID in $(seq 5 -1 1)
do
GATEWAYCMD="../bin/gateway -v --config gateway-$GWID.yaml"
$GATEWAYCMD > $GATEWAYLOGS/gateway-$GWID.console 2>&1 &
PIDVAL=$!
echo $PIDVAL >> results/serverpids
echo "$GATEWAYCMD -- $PIDVAL"
done
# Register two users and then do UDB search on each other # Register two users and then do UDB search on each other
CLIENTCMD="timeout 90s ../bin/client -f blob9 -g $GATEWAY -E spencer@elixxir.io -i 9 -c ../keys/gateway.cmix.rip.crt" CLIENTCMD="timeout 90s ../bin/client -f blob9 -g $GATEWAY -E spencer@elixxir.io -i 9 -c ../keys/gateway.cmix.rip.crt"
eval $CLIENTCMD >> $CLIENTOUT/client9.out 2>&1 & eval $CLIENTCMD >> $CLIENTOUT/client9.out 2>&1 &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment