mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-03 14:33:06 +00:00
39 lines
676 B
Markdown
39 lines
676 B
Markdown
|
|
# nwaku-simulator
|
||
|
|
|
||
|
|
## Requires
|
||
|
|
* docker
|
||
|
|
* docker-compose
|
||
|
|
|
||
|
|
## How to run
|
||
|
|
Without changing anything:
|
||
|
|
|
||
|
|
```
|
||
|
|
git clone
|
||
|
|
cd waku-simulator
|
||
|
|
```
|
||
|
|
|
||
|
|
```
|
||
|
|
export NWAKU_IMAGE=statusteam/nim-waku:v0.17.0
|
||
|
|
export NUM_NWAKU_NODES=5
|
||
|
|
docker-compose up -d
|
||
|
|
```
|
||
|
|
|
||
|
|
|
||
|
|
This will:
|
||
|
|
* spin up grafana/prometheus for monitoring
|
||
|
|
* spin up a bootstrap nwaku node
|
||
|
|
* spin up NUM_NWAKU_NODES nwaku nodes
|
||
|
|
* spin up a `waku-publisher` instance that will inject traffic into the network (see flags for rate and msg size)
|
||
|
|
|
||
|
|
Nodes can be monitored here:
|
||
|
|
http://localhost:3000/d/yns_4vFVk/nwaku-monitoring?orgId=1
|
||
|
|
|
||
|
|
|
||
|
|
## warning
|
||
|
|
|
||
|
|
in case arp tables are overflowing:
|
||
|
|
|
||
|
|
```
|
||
|
|
sysctl net.ipv4.neigh.default.gc_thresh3=32000
|
||
|
|
```
|