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
d437b68a
Commit
d437b68a
authored
3 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Improve documentation
parent
4af524ad
No related branches found
No related tags found
3 merge requests
!68
Master merge
,
!24
Josh/local env migration
,
!11
Release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-4
5 additions, 4 deletions
README.md
localNetwork/run.sh
+10
-4
10 additions, 4 deletions
localNetwork/run.sh
with
15 additions
and
8 deletions
README.md
+
5
−
4
View file @
d437b68a
...
@@ -27,10 +27,11 @@ is added to this testing suite via the run script (`run.sh`)
...
@@ -27,10 +27,11 @@ is added to this testing suite via the run script (`run.sh`)
## Local Network
## Local Network
The
[
localNetwork package
](
./localNetwork
)
is a more general use network tool.
The
[
localNetwork package
](
./localNetwork
)
is a more general use network tool.
This package will run a local version of the xx network on a single machine.
This package will run a local version of the xx network on a single machine until a
This can be done either via the
`run.sh`
script, which will run the network entirely
manually killed by the user. This can be done either via the
`run.sh`
script,
locally with internal IP addresses, or the
`runpublish.sh`
, which runs the network
which will run the network with internal IP addresses, or the
`runpublish.sh`
, which runs the network
with remotely accessible IP addresses.
with remotely accessible IP addresses. With this network established, a developer may,
for example, test the xxDK against it.
## How to manually run locally
## How to manually run locally
...
...
This diff is collapsed.
Click to expand it.
localNetwork/run.sh
+
10
−
4
View file @
d437b68a
#!/usr/bin/env bash
#!/usr/bin/env bash
set
-e
# Clear out the previous run's logs
# Clear out the previous run's logs
rm
gateway
*
-knownRound
||
true
rm
gateway
*
-knownRound
||
true
rm
errServer-
*
||
true
rm
errServer-
*
||
true
...
@@ -18,9 +21,9 @@ UDBOUT=results/udb-console.txt
...
@@ -18,9 +21,9 @@ UDBOUT=results/udb-console.txt
mkdir
-p
$SERVERLOGS
mkdir
-p
$SERVERLOGS
mkdir
-p
$GATEWAYLOGS
mkdir
-p
$GATEWAYLOGS
#
A
llow for verbose gRPC logs
#
#
Uncomment to a
llow for verbose gRPC logs
export
GRPC_GO_LOG_VERBOSITY_LEVEL
=
99
#
export GRPC_GO_LOG_VERBOSITY_LEVEL=99
export
GRPC_GO_LOG_SEVERITY_LEVEL
=
info
#
export GRPC_GO_LOG_SEVERITY_LEVEL=info
nodes
=
$(
ls
-1q
./server-
*
.yaml |
wc
-l
| xargs
)
nodes
=
$(
ls
-1q
./server-
*
.yaml |
wc
-l
| xargs
)
...
@@ -86,6 +89,7 @@ finish() {
...
@@ -86,6 +89,7 @@ finish() {
echo
"KILL -9
$job
"
echo
"KILL -9
$job
"
kill
-9
$job
||
true
kill
-9
$job
||
true
done
done
set
+x
}
}
echo
"You can't use the network until rounds run."
echo
"You can't use the network until rounds run."
...
@@ -94,9 +98,11 @@ echo "and review logs for what went wrong."
...
@@ -94,9 +98,11 @@ echo "and review logs for what went wrong."
rm
rid.txt
||
true
rm
rid.txt
||
true
touch
rid.txt
touch
rid.txt
echo
-n
"Waiting for rounds to run..."
echo
-n
"Waiting for rounds to run..."
while
[
!
-s
rid.txt
]
;
do
cnt
=
0
while
[
!
-s
rid.txt
]
&&
[
$cnt
-lt
240
]
;
do
sleep
1
sleep
1
grep
-a
"RID 1 ReceiveFinishRealtime END"
results/servers/server-2.log
>
rid.txt
||
true
grep
-a
"RID 1 ReceiveFinishRealtime END"
results/servers/server-2.log
>
rid.txt
||
true
cnt
=
$((
$cnt
+
1
))
echo
-n
"."
echo
-n
"."
done
done
...
...
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