Skip to content

Redesign tracker in Rust and write stats to file #1719

@robgjansen

Description

@robgjansen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: MainComposing the core Shadow executableType: EnhancementNew functionality or improved design

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions