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

Tweak logs around network #3777

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Tweak logs around network #3777

merged 4 commits into from
Feb 9, 2024

Conversation

lukasz-zimnoch
Copy link
Member

Closes: #3770

Here we are tweaking some logs, mostly related to the network layer. The goal here is to make debugging easier. We are trying to achieve that by adding additional logs that may help during that process and limiting the unuseful ones. I recommend reviewing commit by commit. A short summary of changes:

  • Set libp2p pubsub logs to warn by default and make that customizable using the PUBSUB_LOG_LEVEL environment variable (b725e1c)
  • Log members that are not ready during DKG/signing network announcement (551e57a)
  • Log distinct operators participating in DKG (980c85e)
  • Execute a ping test for freshly connected peers (b3d97ff)

The libp2p pubsub implementation produces a huge amount of duplicated
`info` logs if one of the participants goes offline during messaging.
This increases costs of logs storage and makes debugging harder.

To overcome that problem, we are setting pubsub logs to the `warn` level
by default and provide a way to customize this setting through the
`PUBSUB_LOG_LEVEL` env variable. We will also add some app-level
logging that will help detecting offline members.
This information is often relevant during DKG debugging. It is good
to have it visible out of the box
This test aims to diagnose potential problems with nodes that can
initiate connections on their own but cannot be reached from the
public internet.
@lukasz-zimnoch lukasz-zimnoch added this to the v2.0.0-m7 milestone Feb 9, 2024
@lukasz-zimnoch lukasz-zimnoch self-assigned this Feb 9, 2024
@lukasz-zimnoch lukasz-zimnoch marked this pull request as ready for review February 9, 2024 14:26
@tomaszslabon tomaszslabon merged commit 988f0a0 into main Feb 9, 2024
29 checks passed
@tomaszslabon tomaszslabon deleted the tweak-logs branch February 9, 2024 14:49
lukasz-zimnoch added a commit that referenced this pull request Feb 12, 2024
This pull request backports
#3777 to the
`releases/mainnet/v2.0.0-m7` branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce overhead around DKG
2 participants