waku-org / waku-simulator

Tool to simulate a waku network with multiple nodes, traffic and users
https://simulator.waku.org
2 stars 6 forks source link

add minimalist golang tool to allow for waku simulation compose generation #6

Open vpavlin opened 1 year ago

vpavlin commented 1 year ago

This PR defines a manifest which can be used to generate a full Docker Compose manifest with some environment preparation (volume dirs creation per service, prometheus config generation etc.).

Example manifest can be seen in default.yaml The struct is defined in types.go

You can build the CLI by running

make build

The resulting binary is ./bin/wakusim

Running:

./bin/wakusim gen

will produce a directors default/ with all the necessary files. You can enter the directory then and run compose

cd default/
docker compose up

You can have multiple simulation files - e.g. very_large_simulation.yaml and execute the generationy by running

./bin/wakusim gen -s very_large_simulation

which will generate all the artifacts in ./very_large_simulation/, where you can run compose up then.

TODOs: