-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tracking for peer heartbeats (#1356)
FuelLabs/fuel-core#1348 In order to track peer heartbeats, this PR adds two new things: - A concept of a rolling/moving average for the time between heartbeats for each peer - This is updated every time a heartbeat is sent from that peer - A regular timeout in the P2P `Task` that will check peers for good heartbeat behavior _Originally I was looking at just reporting on heartbeat, but if a peer never reported then they would be exempt from checks_ There are ~3~ 2 cases in which we will want to punish peers for their heartbeat behavior: - ~They have never sent us a heartbeat~ (If we treat the setup as the first heartbeat, then we can merge this with the next 👇) - They haven't sent us a heartbeat in a long time - They are sending heartbeats very sporadically We can also use this data to determine which peers are performing the best --------- Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
- Loading branch information
Showing
12 changed files
with
727 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.