-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: integrate liteprotocoltester #69
Draft
NagyZoltanPeter
wants to merge
3
commits into
master
Choose a base branch
from
chore-integrate-liteprotocoltester
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Env variables for metal-01.he-eu-hel1.wakusim.misc host. | ||
NWAKU_IMAGE=quay.io/wakuorg/nwaku-pr:2759-rln-v2 | ||
# Network scaling. | ||
NUM_NWAKU_NODES=40 | ||
|
||
|
||
|
||
# Simulation traffic. | ||
MSG_PER_SECOND=10 | ||
MSG_SIZE_KBYTES=10 | ||
TRAFFIC_DELAY_SECONDS=15 | ||
# Enable automatic Docker image updates. | ||
WATCHTOWER_ENABLED=true | ||
# Anvil RPC Node external IP and port | ||
RPC_URL=http://foundry:8545 | ||
# Contract-deployment | ||
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
ETH_FROM=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 | ||
# RLNv2 limits | ||
RLN_RELAY_MSG_LIMIT=10 | ||
RLN_RELAY_EPOCH_SEC=60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/.DS_Store | ||
*.env | ||
!.env | ||
!wakusim.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
version: "3.7" | ||
|
||
networks: | ||
simulation: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: "10.2.0.0/24" | ||
|
||
services: | ||
|
||
bootstrap: | ||
image: ${NWAKU_IMAGE:-harbor.status.im/wakuorg/nwaku:latest} | ||
restart: on-failure | ||
ports: | ||
- 127.0.0.1:60000:60000 | ||
- 127.0.0.1:8008:8008 | ||
- 127.0.0.1:9000:9000 | ||
- 127.0.0.1:8645:8645 | ||
entrypoint: sh | ||
command: | ||
- '/opt/run_bootstrap.sh' | ||
volumes: | ||
- ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z | ||
networks: | ||
- simulation | ||
|
||
nwaku: | ||
image: ${NWAKU_IMAGE:-harbor.status.im/wakuorg/nwaku:latest} | ||
restart: on-failure | ||
deploy: | ||
replicas: ${NUM_NWAKU_NODES:-5} | ||
entrypoint: sh | ||
environment: | ||
- DONOTUSERLN=1 | ||
command: | ||
- '/opt/run_nwaku.sh' | ||
volumes: | ||
- ./run_nwaku.sh:/opt/run_nwaku.sh:Z | ||
depends_on: | ||
- bootstrap | ||
networks: | ||
- simulation | ||
|
||
rest-traffic: | ||
image: alrevuelta/rest-traffic:d936446 | ||
command: | ||
--multiple-nodes=http://waku-simulator_nwaku_[1..${NUM_NWAKU_NODES:-5}]:8645 | ||
--msg-size-kbytes=${MSG_SIZE_KBYTES:-10} | ||
--delay-seconds=${TRAFFIC_DELAY_SECONDS:-15} | ||
networks: | ||
- simulation | ||
depends_on: | ||
- nwaku | ||
profiles: | ||
- msgpump | ||
|
||
prometheus: | ||
image: prom/prometheus:latest | ||
volumes: | ||
- ./monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:z | ||
command: | ||
- --config.file=/etc/prometheus/prometheus.yml | ||
- --storage.tsdb.retention.time=7d | ||
ports: | ||
- 127.0.0.1:9090:9090 | ||
restart: on-failure | ||
networks: | ||
- simulation | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
env_file: | ||
- ./monitoring/configuration/grafana-plugins.env | ||
environment: | ||
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER} | ||
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD} | ||
volumes: | ||
- ./monitoring/configuration/grafana.ini:/etc/grafana/grafana.ini: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/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_typelogo.svg:z | ||
- ./monitoring/configuration/customizations/custom-logo.png:/usr/share/grafana/public/img/fav32.png:z | ||
ports: | ||
- 0.0.0.0:3001:3001 | ||
restart: on-failure | ||
depends_on: | ||
- prometheus | ||
networks: | ||
- simulation | ||
|
||
cadvisor: | ||
image: gcr.io/cadvisor/cadvisor:latest | ||
container_name: cadvisor | ||
#ports: | ||
# - 8080:8080 | ||
volumes: | ||
- /:/rootfs:ro | ||
- /var/run:/var/run:rw | ||
- /sys:/sys:ro | ||
- /var/lib/docker/:/var/lib/docker:ro | ||
depends_on: | ||
- redis | ||
networks: | ||
- simulation | ||
|
||
redis: | ||
image: redis:latest | ||
container_name: redis | ||
#ports: | ||
# - 6379:6379 | ||
networks: | ||
- simulation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind giving some context on what each type of node does?
how is publishernode different from lightpush-service? and filter vs receivednode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this one I could not separate hence including foreign services here.
Mind that my setup is running in a separate compose which is interconnected with simulator via the docker network it defines.
But to see my services on the board I needed to add them here.
In my setup I have n-number of lightpush client connects to a lightpush-service node and a filter client that is connected with a separate filter-service node... where service nodes are connected to waku-simulator relay network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See here: waku-org/nwaku#2813