-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
peerstore: Clarify peer report warnings (#5407)
This PR aims to make the logging from the peer store a bit more clear. In the past, we aggressively produced warning logs from the peer store component, even in cases where the reputation change was not malicious. This has led to an extensive number of logs, as well to node operator confusion. In this PR, we produce a warning message if: - The peer crosses the banned threshold for the first time. This is the actual reason of a ban - The peer misbehaves again while being banned. This may happen during a batch peer report cc @paritytech/networking Part of: #5379. --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: Dmitry Markin <dmitry@markin.tech>
- Loading branch information
1 parent
646e4f7
commit 8b17f0f
Showing
3 changed files
with
105 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
title: Prepare PVFs if node is a validator in the next session | ||
|
||
doc: | ||
- audience: [Node Operator, Node Dev] | ||
description: | | ||
This PR aims to remove the noise caused by the peer store's reputation system. | ||
A warning was emitted each time a reputation was reported for a banned peer, | ||
regardless of the reputation being positive. This has led in the past to | ||
situations where it was hard to identify the actual reason of the ban and | ||
caused noise for node operators. | ||
|
||
The `Banned, disconnecting.` warning is logged only when the peer is banned. | ||
Other misbehaves are logged as `Misbehaved during the ban threshold`. | ||
|
||
crates: | ||
- name: sc-network | ||
bump: patch |
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