stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

1h 15m 24s logged

Devlog #3: Tested the aggregator

TL;DR: Built test_run.py to bridge the fake traffic generator and the aggregator in real-time using threads.


Goal for this session:

Connect the background event generator to the aggregator and test them both

What I did:

So I simply started the generator in a separate thread and wrote a loop that calculates the packets and bytes/s in/out in each tick (100ms) . It later prints it in terminal with info about packet and event count.

The output:

processes=4 packets=28 events=0 in : 133078 B/s, out: 20054 B/s
processes=5 packets=25 events=0 in : 114678 B/s, out: 21327 B/s
processes=5 packets=27 events=1 in : 86732 B/s, out: 29492 B/s
processes=4 packets=25 events=1 in : 67049 B/s, out: 7650 B/s
processes=4 packets=28 events=1 in : 124895 B/s, out: 15077 B/s
processes=6 packets=25 events=0 in : 83312 B/s, out: 30431 B/s
processes=6 packets=48 events=0 in : 241464 B/s, out: 60790 B/s
processes=5 packets=119 events=0 in : 751542 B/s, out: 74549 B/s
processes=5 packets=133 events=0 in : 790185 B/s, out: 63535 B/s

btw the sudden spike of packets we see at the end is a proof of the burst functionality working!

Problems I hit:

I accidentally overwrote the values of bytes per second so it only showed the values of the last packet, not the sum of them.

Next up:

  • Write the web socket for frontend integration (this is fully new territory for me so I am excited)

P.S thanks to @ethmarks for devlog review

0
42

Comments 0

No comments yet. Be the first!