Skip to content
Snippets Groups Projects
Commit f0be160b authored by Rick Carback's avatar Rick Carback
Browse files

Final edits to make integration work again

parent 78d727da
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
log: "results/gateways/gateway-1.log" log: "results/gateways/gateway-1.log"
# Log message level # Log message level
logLevel: 2 logLevel: 1
# The public IP address and port of the node associated with this gateway # The public IP address and port of the node associated with this gateway
nodeAddress: "127.0.0.1:50000" nodeAddress: "127.0.0.1:50000"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
log: "results/gateways/gateway-2.log" log: "results/gateways/gateway-2.log"
# Log message level # Log message level
logLevel: 2 logLevel: 1
# The public IP address and port of the node associated with this gateway # The public IP address and port of the node associated with this gateway
nodeAddress: "127.0.0.1:50001" nodeAddress: "127.0.0.1:50001"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
log: "results/gateways/gateway-3.log" log: "results/gateways/gateway-3.log"
# Log message level # Log message level
logLevel: 2 logLevel: 1
# The public IP address and port of the node associated with this gateway # The public IP address and port of the node associated with this gateway
nodeAddress: "127.0.0.1:50002" nodeAddress: "127.0.0.1:50002"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
log: "results/gateways/gateway-4.log" log: "results/gateways/gateway-4.log"
# Log message level # Log message level
logLevel: 2 logLevel: 1
# The public IP address and port of the node associated with this gateway # The public IP address and port of the node associated with this gateway
nodeAddress: "127.0.0.1:50003" nodeAddress: "127.0.0.1:50003"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
log: "results/gateways/gateway-5.log" log: "results/gateways/gateway-5.log"
# Log message level # Log message level
logLevel: 2 logLevel: 1
# The public IP address and port of the node associated with this gateway # The public IP address and port of the node associated with this gateway
nodeAddress: "127.0.0.1:50004" nodeAddress: "127.0.0.1:50004"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# ================================== # ==================================
# Log message level # Log message level
logLevel: 1 logLevel: 2
# Path to log file # Path to log file
logPath: "results/permissioning.log" logPath: "results/permissioning.log"
......
INFO 2020/06/09 21:26:42 [ObxCt0P+rLWv+0yrCK8v/2x8DXTSBLdN1NKO6YYS930C:50004]: RID 0 ReceiveFinishRealtime END INFO 2020/06/10 01:53:31 [ObxCt0P+rLWv+0yrCK8v/2x8DXTSBLdN1NKO6YYS930C:50004]: RID 1 ReceiveFinishRealtime END
...@@ -28,14 +28,6 @@ mkdir -p $GATEWAYLOGS ...@@ -28,14 +28,6 @@ mkdir -p $GATEWAYLOGS
mkdir -p $CLIENTOUT mkdir -p $CLIENTOUT
mkdir -p $CLIENTCLEAN mkdir -p $CLIENTCLEAN
# Start a user discovery bot server
echo "STARTING UDB..."
UDBCMD="../bin/udb --logLevel 3 --config udb.yaml -l 1"
$UDBCMD >> $UDBOUT 2>&1 &
PIDVAL=$!
echo $PIDVAL >> results/serverpids
echo "$UDBCMD -- $PIDVAL"
echo "STARTING SERVERS..." echo "STARTING SERVERS..."
PERMCMD="../bin/permissioning -c permissioning.yaml " PERMCMD="../bin/permissioning -c permissioning.yaml "
...@@ -96,11 +88,21 @@ cnt=0 ...@@ -96,11 +88,21 @@ cnt=0
echo -n "Waiting for a round to run" echo -n "Waiting for a round to run"
while [ ! -s rid.txt ] && [ $cnt -lt 120 ]; do while [ ! -s rid.txt ] && [ $cnt -lt 120 ]; do
sleep 1 sleep 1
cat results/servers/server-5.log | grep "RID 0 ReceiveFinishRealtime END" > rid.txt || true grep -a "RID 1 ReceiveFinishRealtime END" results/servers/server-5.log > rid.txt || true
cnt=$(($cnt + 1)) cnt=$(($cnt + 1))
echo -n "." echo -n "."
done done
# Start a user discovery bot server
echo "STARTING UDB..."
UDBCMD="../bin/udb --logLevel 3 --config udb.yaml -l 1"
$UDBCMD >> $UDBOUT 2>&1 &
PIDVAL=$!
echo $PIDVAL >> results/serverpids
echo "$UDBCMD -- $PIDVAL"
sleep 5
runclients() { runclients() {
echo "Starting clients..." echo "Starting clients..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment