Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gossip: add peer score tracking ability #393

Open
Nashatyrev opened this issue Oct 24, 2024 · 0 comments
Open

Gossip: add peer score tracking ability #393

Nashatyrev opened this issue Oct 24, 2024 · 0 comments

Comments

@Nashatyrev
Copy link
Collaborator

Description

Would be good to have a mechanism to track and explain peer gossip score

Motivation

A peer may loose its mesh due to downscore and we basically have no idea what's going on with a peer score.
https://hackmd.io/fumYP6OKTLSin6dAVSI-9A

Requirements

The first idea which comes to mind is to emit peer score snapshot (immutable) every decayInterval. The snapshot should include both the sore values (including all topics) and original counters (like meshDeliveries, firstDeliveries) for better context. The client may want to subscribe to these snapshots and log some explanation whenever the score drops below some threshold(s)

However there are cases when the score should be updated earlier than at the end of decayInterval, for example invalidMessages when we need to react faster to avoid DoSing with invalid messages for a longer period.

Open questions

No response

Are you planning to do it yourself in a pull request ?

Maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant