chore: adapt to latest lpt build, enhancements on dashboard

This commit is contained in:
NagyZoltanPeter 2025-04-11 13:41:48 +02:00
parent 4d7a5e4937
commit 82a5b1651e
No known key found for this signature in database
GPG Key ID: 16EADB9673B65368
4 changed files with 951 additions and 820 deletions

View File

@ -39,7 +39,7 @@ Navigate to http://localhost:3033 to see the lite-protocol-tester dashboard.
| NUM_PUBLISHER_NODES | Number of publisher node copies to run - this can extend stressful testing of the network | 1 | | NUM_PUBLISHER_NODES | Number of publisher node copies to run - this can extend stressful testing of the network | 1 |
| NUM_RECEIVER_NODES | Number of receiver node copies to run - to widen reliability test of the network | 1 | | NUM_RECEIVER_NODES | Number of receiver node copies to run - to widen reliability test of the network | 1 |
| NUM_MESSAGES | Number of message to publish, 0 means infinite | 120 | | NUM_MESSAGES | Number of message to publish, 0 means infinite | 120 |
| DELAY_MESSAGES | Frequency of messages in milliseconds | 1000 | | MESSAGE_INTERVAL_MILLIS | Frequency of messages in milliseconds | 1000 |
| PUBSUB | Used pubsub_topic for testing | /waku/2/rs/66/0 | | PUBSUB | Used pubsub_topic for testing | /waku/2/rs/66/0 |
| CONTENT_TOPIC | content_topic for testing | /tester/1/light-pubsub-example/proto | | CONTENT_TOPIC | content_topic for testing | /tester/1/light-pubsub-example/proto |
| CLUSTER_ID | cluster_id of the network | 16 | | CLUSTER_ID | cluster_id of the network | 16 |

View File

@ -8,7 +8,7 @@ x-logging: &logging
# Environment variable definitions # Environment variable definitions
x-test-running-conditions: &test_running_conditions x-test-running-conditions: &test_running_conditions
NUM_MESSAGES: ${NUM_MESSAGES:-120} NUM_MESSAGES: ${NUM_MESSAGES:-120}
DELAY_MESSAGES: "${DELAY_MESSAGES:-1000}" MESSAGE_INTERVAL_MILLIS: "${MESSAGE_INTERVAL_MILLIS:-1000}"
PUBSUB: ${PUBSUB:-/waku/2/rs/66/0} PUBSUB: ${PUBSUB:-/waku/2/rs/66/0}
CONTENT_TOPIC: ${CONTENT_TOPIC:-/tester/2/light-pubsub-test/wakusim} CONTENT_TOPIC: ${CONTENT_TOPIC:-/tester/2/light-pubsub-test/wakusim}
CLUSTER_ID: ${CLUSTER_ID:-66} CLUSTER_ID: ${CLUSTER_ID:-66}
@ -21,6 +21,7 @@ x-test-running-conditions: &test_running_conditions
LIGHTPUSH_BOOTSTRAP: ${LIGHTPUSH_BOOTSTRAP:-} LIGHTPUSH_BOOTSTRAP: ${LIGHTPUSH_BOOTSTRAP:-}
FILTER_SERVICE_PEER: ${FILTER_SERVICE_PEER:-} FILTER_SERVICE_PEER: ${FILTER_SERVICE_PEER:-}
FILTER_BOOTSTRAP: ${FILTER_BOOTSTRAP:-} FILTER_BOOTSTRAP: ${FILTER_BOOTSTRAP:-}
LOG_LEVEL: ${LOG_LEVEL:-INFO}
# Services definitions # Services definitions
@ -66,39 +67,39 @@ services:
- simulation - simulation
# We have prometheus and grafana defined in waku-simulator already # We have prometheus and grafana defined in waku-simulator already
prometheus: # prometheus:
image: docker.io/prom/prometheus:latest # image: docker.io/prom/prometheus:latest
volumes: # volumes:
- ./monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:Z # - ./monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:Z
command: # command:
- --config.file=/etc/prometheus/prometheus.yml # - --config.file=/etc/prometheus/prometheus.yml
- --web.listen-address=:9099 # - --web.listen-address=:9099
restart: on-failure:3 # restart: on-failure:3
depends_on: # depends_on:
- publishernode # - publishernode
- receivernode # - receivernode
networks: # networks:
- simulation # - simulation
grafana: # grafana:
image: docker.io/grafana/grafana:latest # image: docker.io/grafana/grafana:latest
env_file: # env_file:
- ./monitoring/configuration/grafana-plugins.env # - ./monitoring/configuration/grafana-plugins.env
volumes: # volumes:
- ./monitoring/configuration/grafana.ini:/etc/grafana/grafana.ini:Z # - ./monitoring/configuration/grafana.ini:/etc/grafana/grafana.ini:Z
- ./monitoring/configuration/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:Z # - ./monitoring/configuration/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:Z
- ./monitoring/configuration/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:Z # - ./monitoring/configuration/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:Z
- ./monitoring/configuration/dashboards:/var/lib/grafana/dashboards/:Z # - ./monitoring/configuration/dashboards:/var/lib/grafana/dashboards/:Z
- ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_icon.svg:Z # - ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_icon.svg:Z
- ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_typelogo.svg:Z # - ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_typelogo.svg:Z
- ./monitoring/configuration/customizations/custom-logo.png:/usr/share/grafana/public/img/fav32.png:Z # - ./monitoring/configuration/customizations/custom-logo.png:/usr/share/grafana/public/img/fav32.png:Z
ports: # ports:
- 0.0.0.0:3033:3033 # - 0.0.0.0:3033:3033
restart: on-failure:3 # restart: on-failure:3
depends_on: # depends_on:
- prometheus # - prometheus
networks: # networks:
- simulation # - simulation
networks: networks:
simulation: simulation:

View File

@ -16,7 +16,7 @@ START_PUBLISHING_AFTER=15
NUM_MESSAGES=5000 NUM_MESSAGES=5000
## ms delay between messages - when setting this consider RLN if applied to the network use will use. ## ms delay between messages - when setting this consider RLN if applied to the network use will use.
DELAY_MESSAGES=400 MESSAGE_INTERVAL_MILLIS=400
## 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 MIN_MESSAGE_SIZE=15Kb