Go to file
Alberto Soutullo c4ee242471 Remove comment in payload and added error 2023-03-10 12:41:14 +01:00
config WIP: Starting clean code to refactor as it already works for several nodes per container. 2023-03-10 12:41:06 +01:00
gennet-module Add multiple nomos nodes per container support 2023-03-10 12:41:04 +01:00
monitoring Modified runner and wakurtosis to add cadvisor to the enclave. Also updated kurtosis version 2023-02-27 13:40:59 +01:00
src Make wls actually take arguments 2023-03-10 12:41:13 +01:00
wls-module Remove comment in payload and added error 2023-03-10 12:41:14 +01:00
.dockerignore Initial commit 2022-10-13 18:46:01 +02:00
.gitignore Renamed propperly WSL to WLS to avoid confussions 2023-03-10 12:40:54 +01:00
README.md Renamed propperly WSL to WLS to avoid confussions 2023-03-10 12:40:54 +01:00
analysis.py Minor 2023-02-27 10:58:31 +00:00
build.sh Simplify dockerfiles and mark files as executable 2023-03-10 12:41:00 +01:00
kurtosis.yml Trying to set up prometheus under Kurtosis 2022-12-16 13:13:12 +01:00
main.star WIP trying to pass new network information to wls 2023-03-10 12:41:05 +01:00
prepare_env.sh Added prepare environment script 2023-02-10 10:32:42 +00:00
run.sh Simplify dockerfiles and mark files as executable 2023-03-10 12:41:00 +01:00
tests.star Changed system_variables variable to sys, since it was too verbose 2023-02-12 01:57:27 +01:00

README.md

Wakurtosis

Starting version for Waku network simulations (https://github.com/waku-org/pm/issues/2)

More info about Kurtosis: https://docs.kurtosis.com/

How to use:

Before using this repository note that:

  • You are using Kurtosis version 0.67.1. This is important, as they are working on it and changes can be huge depending on different versions. You can find all Kurtosis versions here.
  • The topology files that will be used by default are defined in config/topology_generated/. This topology is created with the gennet module.
  • Kurtosis can set up services in a parallel manner, defined in the config.json file (see below).
  • Only kurtosis and docker are needed to run this.

How to run

From the root of the repo run:

sh ./run.sh

This will load the default configuration file ./config/config.json. You can also specify a different .json config file and its location with:

sh ./run.sh ./config/config.json

JSON main configuration file options

These are arguments that can be modified:

  • prng_seed: int. Seed to reproduce results.

  • enclave_name: string. Default: wakurtosis. Defines the name of the Kurtosis enclave being created.

  • topology_file: string. Default: waku_test_topology_small.json. If defines the network topology that will be created.

  • jobs: int. Defines how many services will be instantiated at the same time.

  • interconnection_batch: int. If nodes are being connected by a given topology, this tells kurtosis how many connections will try to set up in the same node at a time. Used to avoid timeouts if a node has a lot of connections.

  • WLS module configuration

  • Gennet module configuration

What will happen

Kurtosis will automatically add one node as container inside the enclave. The way that nodes are interconnected is given by the topology. The configuration of each node is given by the configuration file.

Once all nodes are ready, prometheus and grafana will be set up and connected to all nodes.

Once all nodes have been interconnected the simulation starts and will inject traffic into the network following the parameters specified in the configuration file.

Check Prometheus+Grafana+Logs

  • Simulation log:

'kurtosis service logs wakurtosis $(kurtosis enclave inspect | grep wls- | awk '{print $1}')'

  • Grafana server:

To display the IP address and Port of the Grafana server on your local machine run:

'kurtosis enclave inspect | grep grafana- | awk '{print $6}'

Remember that by default is 'wakurtosis'.

Please, any improvements/bugs that you see, create an issue, and we will work on it.