Tool to simulate a waku network with multiple nodes, traffic and users https://simulator.waku.org
Go to file
stubbsta 5a1e3974ae
connect external store node
2024-09-13 12:17:50 +02:00
.github/workflows Delete unused action 2024-06-12 12:50:01 +02:00
monitoring WIP 2024-07-09 15:52:51 +02:00
postgres_cfg add store WIP 2024-07-08 11:56:11 +02:00
src Add description of burst messaging to connect-spam-node.md (#81) 2024-07-01 15:48:43 +02:00
.gitignore Add waku-simulator book (#65) 2024-06-12 12:34:16 +02:00
.gitmodules Rln membership registration implementation (#23) 2024-03-14 13:35:25 +02:00
5xx.html Block explorer nginx (#61) 2024-06-07 16:53:01 +02:00
README.md Add book link 2024-06-12 12:51:55 +02:00
book.toml Update book.toml 2024-06-12 13:19:40 +02:00
deploy_rln_contract.sh Update contract limit and rest traffic commit (#79) 2024-06-27 11:01:12 +02:00
docker-compose.yml connect external store node 2024-09-13 12:17:50 +02:00
nginx.conf Block explorer nginx (#61) 2024-06-07 16:53:01 +02:00
run_bootstrap.sh connect external store node 2024-09-13 12:17:50 +02:00
run_nwaku.sh connect external store node 2024-09-13 12:17:50 +02:00
run_nwaku_noRLN.sh connect external store node 2024-09-13 12:17:50 +02:00
run_nwaku_static1.sh connect external store node 2024-09-13 12:17:50 +02:00
run_nwaku_store.sh trying something 2024-09-11 10:08:15 +02:00
wakusim.env replace hardcoded MAX_MESSAGE_LIMIT in RLN contract (#74) 2024-06-20 15:39:19 +02:00

README.md

waku-simulator

Check 📖 The Waku Simulator Book📖

Quickstart

git clone https://github.com/waku-org/waku-simulator.git
cd waku-simulator

Configure the simulation parameters. You can place the env variable in an .env file.

export NWAKU_IMAGE=quay.io/wakuorg/nwaku-pr:2759-rln-v2
export NUM_NWAKU_NODES=5
export TRAFFIC_DELAY_SECONDS=15
export MSG_SIZE_KBYTES=10
export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
export ETH_FROM=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
export RLN_RELAY_EPOCH_SEC=10
export RLN_RELAY_MSG_LIMIT=2

docker-compose --compatibility up -d

warning

in case arp tables are overflowing:

sysctl net.ipv4.neigh.default.gc_thresh3=32000

Compose V2 users should spin up the containers with the following command:

docker-compose --compatibility up -d

Infrastructure

An instance of this service is deployed at https://simulator.waku.org/.

It is configured using wakusim.env file, and new changes to this repository are picked up using a GitHub webhook handler. The docker images used are updated using Watchtower as well.

For details on how it works please read the Ansible role readme file. The original deployment issue can be found here.

The deployed branch is deploy-wakusim.