-
Notifications
You must be signed in to change notification settings - Fork 268
Redesign tracker in Rust and write stats to file #1719
Copy link
Copy link
Open
Labels
Component: MainComposing the core Shadow executableComposing the core Shadow executableType: EnhancementNew functionality or improved designNew functionality or improved design
Description
From #1629:
Tracker log messages look like this:
00:00:07.393281 [thread-531] 00:00:02.000000000 [message] [peer678~11.0.2.166] [tracker.c:457] [_tracker_logNode] [shadow-heartbeat] [node] 1,2037126,2143726,0.000000,0,0.000000;0,0,0,0,0,0,0,0,0,0,0,0;0,0,0,0,0,0,0,0,0,0,0,0;1911,2037126,0,0,0,0,1911,80262,1956864,0,0,0;2011,2143726,0,0,0,0,2011,84462,2059264,0,0,0
This is unreadable and the code is using a C counter type. We should be using the newer rust counter type for counting things like number of packets and bytes sent/recv in the last second, and write this data to a structured stats file rather than the log file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: MainComposing the core Shadow executableComposing the core Shadow executableType: EnhancementNew functionality or improved designNew functionality or improved design