Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
cfcaf24c
Commit
cfcaf24c
authored
5 years ago
by
Richard Carback
Browse files
Options
Downloads
Patches
Plain Diff
Add roundBufferTimeout to 300s
parent
f657a0fb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+16
-13
16 additions, 13 deletions
basice2e/run.sh
with
16 additions
and
13 deletions
basice2e/run.sh
+
16
−
13
View file @
cfcaf24c
...
...
@@ -22,7 +22,7 @@ echo "STARTING SERVERS..."
for
SERVERID
in
$(
seq
5
-1
1
)
do
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
sleep
15
# This will force a CDE timeout
fi
...
...
@@ -31,10 +31,23 @@ do
echo
"
$SERVERCMD
--
$PIDVAL
"
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
finish
()
{
echo
"STOPPING SERVERS..."
echo
"STOPPING SERVERS
AND GATEWAYS
..."
# NOTE: jobs -p doesn't work in a signal handler
for
job
in
$(
cat
results/serverpids
)
do
...
...
@@ -49,7 +62,7 @@ finish() {
trap
finish EXIT
trap
finish INT
sleep
4
5
# FIXME: We should not need this, but the servers don't respond quickly
sleep
1
5
# FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now.
export
GATEWAY
=
"localhost:8444,localhost:8443,localhost:8442,localhost:8441,localhost:8440"
...
...
@@ -100,16 +113,6 @@ PIDVAL=$!
echo
$PIDVAL
>>
results/serverpids
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
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 &
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment