mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-07-09 17:50:07 +00:00
feat: QUIC transport for simulator nodes
* QUIC_SUPPORT env (default on) adds --quic-support * pass QUIC_SUPPORT via compose + wakusim.env * fix rest-traffic hostnames for Compose v2
This commit is contained in:
parent
0faeda33ae
commit
745ff2e372
@ -68,6 +68,8 @@ services:
|
||||
- 127.0.0.1:9000:9000
|
||||
- 127.0.0.1:8645:8645
|
||||
entrypoint: sh
|
||||
environment:
|
||||
- QUIC_SUPPORT=${QUIC_SUPPORT:-true}
|
||||
command:
|
||||
- '/opt/run_bootstrap.sh'
|
||||
volumes:
|
||||
@ -92,6 +94,7 @@ services:
|
||||
- RLN_RELAY_EPOCH_SEC=${RLN_RELAY_EPOCH_SEC:-600}
|
||||
- TOKEN_ADDRESS=${TOKEN_ADDRESS:-0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512}
|
||||
- PRIVATE_KEY=${PRIVATE_KEY}
|
||||
- QUIC_SUPPORT=${QUIC_SUPPORT:-true}
|
||||
command:
|
||||
- '/opt/run_nwaku.sh'
|
||||
volumes:
|
||||
@ -131,7 +134,7 @@ services:
|
||||
context: ./tools/rest-traffic
|
||||
dockerfile: Dockerfile
|
||||
command:
|
||||
--multiple-nodes=http://logos-delivery-simulator_nwaku_[1..${NUM_LD_NODES:-5}]:8645
|
||||
--multiple-nodes=http://logos-delivery-simulator-nwaku-[1..${NUM_LD_NODES:-5}]:8645
|
||||
--msg-size-kbytes=${MSG_SIZE_KBYTES:-10}
|
||||
--delay-seconds=${TRAFFIC_DELAY_SECONDS:-15}
|
||||
networks:
|
||||
|
||||
@ -4,6 +4,8 @@ IP=$(ip a | grep "inet " | grep -Fv 127.0.0.1 | sed 's/.*inet \([^/]*\).*/\1/')
|
||||
|
||||
echo "I am a bootstrap node"
|
||||
|
||||
QUIC_ARGS=""
|
||||
[ "${QUIC_SUPPORT:-true}" = "true" ] && QUIC_ARGS="--quic-support=true"
|
||||
exec /usr/bin/wakunode\
|
||||
--relay=false\
|
||||
--rest=true\
|
||||
@ -17,4 +19,4 @@ exec /usr/bin/wakunode\
|
||||
--metrics-server-address=0.0.0.0\
|
||||
--nodekey=30348dd51465150e04a5d9d932c72864c8967f806cce60b5d26afeca1e77eb68\
|
||||
--nat=extip:${IP}\
|
||||
--cluster-id=66
|
||||
--cluster-id=66 $QUIC_ARGS
|
||||
@ -126,6 +126,8 @@ if [ -z "${BOOTSTRAP_ENR}" ]; then
|
||||
fi
|
||||
|
||||
echo "Using bootstrap node: ${BOOTSTRAP_ENR}"
|
||||
QUIC_ARGS=""
|
||||
[ "${QUIC_SUPPORT:-true}" = "true" ] && QUIC_ARGS="--quic-support=true"
|
||||
exec /usr/bin/wakunode\
|
||||
--relay=true\
|
||||
--lightpush=true\
|
||||
@ -150,4 +152,4 @@ exec /usr/bin/wakunode\
|
||||
--discv5-bootstrap-node=${BOOTSTRAP_ENR}\
|
||||
--nat=extip:${IP}\
|
||||
--shard=0\
|
||||
--cluster-id=66
|
||||
--cluster-id=66 $QUIC_ARGS
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
# Env variables for metal-01.he-eu-hel1.misc.wakusim host.
|
||||
LD_IMAGE=harbor.status.im/wakuorg/nwaku:latest
|
||||
QUIC_SUPPORT=true
|
||||
# Network scaling.
|
||||
NUM_LD_NODES=50
|
||||
# Simulation traffic.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user