vacp2p / wakurtosis

4 stars 3 forks source link

nwaku simulation requirements #108

Open alrevuelta opened 1 year ago

alrevuelta commented 1 year ago

As discussed in a meeting, we agreed on using the current features that we have in wakurtosis to run some simulations and try to i) learn more about nwaku behaviour with a significant amount of nodes and ii) showcase all the developed features and start using them in practice.

Here I list of nice to have set of requirements, more or less with what we discussed previosly having first test this in mind and adding some more specific details. Thinking about wakurtosis as a blackbox, I think we can divide these "requirements" into:

Simulation 1

Inputs:

Output: The existing pdf shared in the past with the results would be a perfect way to share the results. Would suggest adding more information such as release version, timestamp, and some time series information coming from prometheus (waku and nim-libp2p). So I would suggest keeping the existing report data in the pdfs we shared:

And would suggest plotting also a time series representation for the above metrics for a randomly amount of selected nodes (let's say 5). If we have 300 nodes displaying them all would be too much, but having some time series ones from a bunch of nodes, can help validating the simulation.

And add on top:

And the following prometheus metrics. Same as the other, some time series with a bunch of random ones, and calculate the probability densitiy fuction of the rest (or similar statistical "summarized" representation.)

Can you confirm if:

Daimakaimura commented 1 year ago

Thank you for putting this together @alrevuelta I do have some questions / comments:

alrevuelta commented 1 year ago

Regarding traffic injection you mention "both at the same time" At the moment we only support a single source of traffic.

No problem, will edit the requirements with just one source of traffic.

Regarding the NWaku Prometheus metrics, would you like us to calculate the distributions and add them to the final PDF figure

Since I assume this is not imlpemented, im fine with having the raw prometheus time series (without the distribution) by now.

Yes, it is possible to calculate the message loss rate (it is already calculated)

Great feature!

Yes, we can calculate the PDFs those 3 Prometheus metrics and add this to the final PDF. However this is not implemented at the moment and I am wondering if you would like to wait for this to be added or you rather get some results without those metrics ASAP.

No problem, lets stick to just the time series metrics to have something asap. pdfs are nice, but in a short simulation (eg few hours) perhaps with the time series if enough. So lets leave that by now :)