Configure runner for waki-simulator

This commit is contained in:
NagyZoltanPeter 2025-03-22 15:01:01 +01:00
parent 2682cedf49
commit 38fd160590
No known key found for this signature in database
GPG Key ID: 16EADB9673B65368
2 changed files with 31 additions and 42 deletions

61
.env
View File

@ -1,54 +1,33 @@
#LiteProtocolTester run configurator
# Docker image of lite-protocol-tester if different than used default
#LPT_IMAGE=
# Define number of publisher and receiver nodes to run.
#LPT_IMAGE=wakuorg/liteprotocoltester:deploy
#
## Define number of publisher and receiver nodes to run.
NUM_PUBLISHER_NODES=1
NUM_RECEIVER_NODES=1
## Can add some seconds delay before SENDER starts publishing
## Useful to let RECEIVER nodes to setup and subscribe ahead of expected messages being sent.
START_PUBLISHING_AFTER=15
# Can add some seconds delay before SENDER starts publishing
# Useful to let RECEIVER nodes to setup and subscribe ahead of expected messages being sent.
START_PUBLISHING_AFTER=60
## Define number of messages to be sent by each publisher node.
## Set 0 for infinite number of messages
NUM_MESSAGES=5000
# Define number of messages to be sent by each publisher node.
# Set 0 for infinite number of messages
NUM_MESSAGES=100
## ms delay between messages - when setting this consider RLN if applied to the network use will use.
DELAY_MESSAGES=400
# ms delay between messages - when setting this consider RLN if applied to the network use will use.
DELAY_MESSAGES=1000
# Define message size range in bytes - publisher node will randomly generate message size between these values.
## Define message size range in bytes - publisher node will randomly generate message size between these values.
MIN_MESSAGE_SIZE=15Kb
MAX_MESSAGE_SIZE=145Kb
## You can define service peers for publishers and receivers if you know ahead the exact peers. Specify either with multiaddress or ENR.
LIGHTPUSH_SERVICE_PEER=/ip4/10.2.0.101/tcp/60001/p2p/16Uiu2HAkyte8uj451tGkbww4Mjcg6DRnmAHxNeWyF4zp23RbpG3n
FILTER_SERVICE_PEER=/ip4/10.2.0.101/tcp/60001/p2p/16Uiu2HAkyte8uj451tGkbww4Mjcg6DRnmAHxNeWyF4zp23RbpG3n
# You can define service peers for publishers and receivers if you know ahead the exact peers. Specify either with multiaddress or ENR.
#LIGHTPUSH_SERVICE_PEER=
#FILTER_SERVICE_PEER=
# ...or you can define bootstrap to locate service peers on the network, specify either with multiaddress or ENR.
#LIGHTPUSH_BOOTSTRAP=
#FILTER_BOOTSTRAP=
# Predefined values for different fleets - or set according to your needs
## for wakusim
#PUBSUB=/waku/2/rs/66/0
#CONTENT_TOPIC=/tester/2/light-pubsub-test/wakusim
#CLUSTER_ID=66
## for status.prod
#PUBSUB=/waku/2/rs/16/32
#CONTENT_TOPIC=/tester/2/light-pubsub-test/fleet
#CLUSTER_ID=16
## for status.staging
#PUBSUB=/waku/2/rs/16/32
#CONTENT_TOPIC=/tester/2/light-pubsub-test/fleet
#CLUSTER_ID=16
## for TWN/waku.sandbox
#PUBSUB=/waku/2/rs/1/4
#CONTENT_TOPIC=/tester/2/light-pubsub-test/twn
#CLUSTER_ID=1
## Predefined values for different fleets - or set according to your needs
### for wakusim
PUBSUB=/waku/2/rs/66/0
CONTENT_TOPIC=/tester/2/light-pubsub-test/wakusim
CLUSTER_ID=66

View File

@ -40,6 +40,8 @@ services:
- /usr/bin/run_tester_node_on_fleet.sh
- /usr/bin/liteprotocoltester
- SENDER
networks:
- waku-simulator_simulation
receivernode:
image: ${LPT_IMAGE:-harbor.status.im/wakuorg/liteprotocoltester:latest}
@ -58,6 +60,8 @@ services:
- RECEIVER
depends_on:
- publishernode
networks:
- waku-simulator_simulation
# We have prometheus and grafana defined in waku-simulator already
prometheus:
@ -71,6 +75,8 @@ services:
depends_on:
- publishernode
- receivernode
networks:
- waku-simulator_simulation
grafana:
image: docker.io/grafana/grafana:latest
@ -89,5 +95,9 @@ services:
restart: on-failure:3
depends_on:
- prometheus
networks:
- waku-simulator_simulation
networks:
waku-simulator_simulation:
external: true