mirror of
https://github.com/vacp2p/wakurtosis.git
synced 2026-01-09 14:58:02 -05:00
* Savd rpc and metrics by default in config * More flags true by default * Added disk usage and refactored plot * Set metrics back to "good ones" * Added summary to plot * Added analysis to build * Fixed wrong function refactor * Now just one mount is needed * Cleaned main * Prepared prometheus script to handle list of given metrics * Deleted old plotting function * Converted data to megabytes with flag, and fixed bug in continue when fetching metrics * Added continue back to fix bug * Now prometheus can accept a variable number of metrics to gather * Modified plotting function to accept a variable number of metrics * wip in main to work with variable number of metrics * Plotting is now read in config.json * Cleaned main * Cleaned plotting file * Created function to put custom metrics inside metrics dict * Fixed error when having multiple metrics in same plot * Updated config to have plotting information as example * Updated dockerfile * Updated README.md * Renamed variable and function * Deleted toml folder from arg parser * Deleted print in plotting.py * Deleted toml path from vars file * Deleted unnused functions in prometheus.py * updated main to not use tomls folder * Added more tests in test_analysis.py * refactored arg_parser.py test * Added more tests in log_parser * Created prometheus tests * Finalized prometheus tests * Fixed bug in prometheus, if data does not exists (yet, like could be container_fs_writes_bytes_total), we add a zero. * Added xticks in plots * Typo * Updated readme
Wakurtosis Load Simualtor (WLS)
Kurtosis: https://docs.kurtosis.com/
How to use:
To build docker image:
sh ./build.sh
Name of the image is wls:0.0.1
Parameters
- simulation_time: int. Default: 300. Specifies the simulation time in seconds.
- message_rate: int. Default: 25. Specifies the message rate in packets per second.
- min_packet_size: int. Default: 1. Specifies the minimum size of the packet in bytes. Must be an even number (Waku constrain).
- min_packet_size: int. Default: 1024. Specifies the maximum size of the packet in bytes. Must be an even number (Waku constrain).
- dist_type: int. Default: uniform. Specifies the size distribution of the messages being injected into the network. Options are: gaussian and uniform
- emitters_fraction: int. Default: 0.5. Specifies the fraction of nodes that will be injecting traffic.
- inter_msg_type: int. Default: poisson. Specifies the inter-message times. Options are: poisson and uniform
dist_type : "gaussian"
# Fraction (of the total number of nodes) that inject traffic
# Values: [0., 1.]
emitters_fraction : 0.5
# Inter-message times
# Values: uniform and gaussian
inter_msg_type : "uniform"