-
Notifications
You must be signed in to change notification settings - Fork 801
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
Node sends 1k "Duplicate gossip" msgs #5379
Comments
Edited. See the next message of @alexggh. |
The logs are bit misleading because after we banned a node we print the log at every reputation update. So you actually have too look for the first occurence of Banned to understand the root cause, so in this case the culprit for banning was.
|
We ve seen this before indeed, also reported by some external operator. I have this on my todo list, will publish a pr Monday probably, to make the reputation warning of a peer under the banned threshold more explicit. As to the initial warning which caused the ban, i think we can stil look into that |
I see 3 places this log is issued from: 2 in chain sync: polkadot-sdk/substrate/client/network/sync/src/strategy/chain_sync.rs Lines 755 to 765 in 7426788
and one in warp sync: polkadot-sdk/substrate/client/network/sync/src/strategy/warp.rs Lines 433 to 439 in 7426788
Unfortunately, we don't seem to have sync=debug logs enabled on our Kusama validators. |
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>
We had a spike of 1k warning messages from a single peer on Kusama:
https://grafana.teleport.parity.io/goto/Vs5GETjIR?orgId=1
where the reputation was very slowly (-4) adjusted after being banned.
The node is https://apps.turboflakes.io/?chain=kusama#/validator/J11jfzJQAkxKJTZozq3SDRAsjZkSQjzoRCUQ5oVBxWsecJT?mode=history which has a low grading (F), but would still good to know the reason why "Duplicate gossip" was triggered.
cc @paritytech/networking
The text was updated successfully, but these errors were encountered: