mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-07-11 18:49:28 +00:00
26 lines
508 B
Markdown
26 lines
508 B
Markdown
# rest-traffic
|
|
|
|
Test utility for [nwaku](https://github.com/waku-org/nwaku).
|
|
Given the REST API endpoint, it injects traffic with a given message size at a given rate.
|
|
|
|
See usage:
|
|
```
|
|
node index.ts --help
|
|
```
|
|
|
|
Use with docker:
|
|
```
|
|
build:
|
|
context: ./tools/traffic-subscribe
|
|
dockerfile: Dockerfile
|
|
```
|
|
|
|
|
|
Run outside docker:
|
|
```
|
|
IP=$(docker inspect logos-delivery-simulator-nwaku-1 -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}')
|
|
node index.ts --single-node=http://$IP:8645
|
|
```
|
|
|
|
|