DST-shadow
Go to file
ufarooqstatus 212933a4af GossipSub shadow simulation scripts 2023-09-28 01:10:36 +05:00
nimbledeps Add shadow node 2023-09-01 10:12:05 +02:00
shadow GossipSub shadow simulation scripts 2023-09-28 01:10:36 +05:00
tools Add shadow node 2023-09-01 10:12:05 +02:00
.gitignore Add shadow node 2023-09-01 10:12:05 +02:00
LICENSE Initial commit 2023-08-10 11:42:46 +02:00
README.md GossipSub shadow simulation scripts 2023-09-28 01:10:36 +05:00
test_node.nimble Add shadow node 2023-09-01 10:12:05 +02:00

README.md

dst-gossipsub-test-node

  • DST gossipsub test node
  • incl shadow simulation setup

Shadow example

nimble install -dy
cd shadow
# the default shadow.yml will start 5k nodes, you might want to change that by removing
# lines and setting PEERS to the number of instances
./run.sh <runs> <nodes>
# the first parameter <runs> tells the number of simulation runs, and second parameter <nodes> tells the 
# number of nodes in simulation, for example ./run.sh 2 3000
# the output for each run creates latencies(X) and shadowlogX files. where X is the simulation number.

# the run script (run.sh) uses awk to summarize latencies(X) and shadowlogX files

# you can use the plotter tool to extract useful metrics & generate a graph
cd ../tools
nim -d:release c plotter
./plotter ../shadow/latencies "Clever graph name"
# will output averages, and generate a "test.svg" graph

The dependencies will be installed in the nimbledeps folder, which enables easy tweaking