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

Increase slog buffer size #5882

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Increase slog buffer size #5882

merged 1 commit into from
Jun 4, 2024

Conversation

michaelsproul
Copy link
Member

@michaelsproul michaelsproul commented Jun 4, 2024

Proposed Changes

Increase the slog buffer size to 16K to reduce the occurrence of:

ERRO slog-async: logger dropped messages due to channel overflow, count: 4

These errors sometimes occur on our Holesky BNs which are receiving attestations from 100K validators each. They also occur occasionally on other BNs supporting large numbers of validators.

Examples of messages that overflow the channel include:

Arguably some of these should be debounced, but for others it's not obvious that they should be. Increasing the buffer size temporarily at least gives us a full view of the logs until some of these spammier logs are toned down. It's frustrating to miss important ERRO/CRIT logs due to overflows.

Additional Info

@michaelsproul michaelsproul added ready-for-review The code is ready for review UX-and-logs v5.2.0 Q2 2024 labels Jun 4, 2024
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jun 4, 2024
@jimmygchen
Copy link
Member

@mergify queue

Copy link

mergify bot commented Jun 4, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 1b7c4a4

mergify bot added a commit that referenced this pull request Jun 4, 2024
michaelsproul added a commit that referenced this pull request Jun 4, 2024
Squashed commit of the following:

commit d6dfcc4
Author: Michael Sproul <michael@sigmaprime.io>
Date:   Tue Jun 4 10:36:27 2024 +1000

    Increase slog buffer size
@michaelsproul michaelsproul mentioned this pull request Jun 4, 2024
mergify bot added a commit that referenced this pull request Jun 4, 2024
@mergify mergify bot merged commit 1b7c4a4 into sigp:unstable Jun 4, 2024
28 checks passed
@michaelsproul michaelsproul deleted the slog-more branch June 4, 2024 04:41
@dapplion
Copy link
Collaborator

dapplion commented Jun 5, 2024

Why 16k and not more? What's the avg size of a log record?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. UX-and-logs v5.2.0 Q2 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants