[Merged by Bors] - added debounce to log#4269
[Merged by Bors] - added debounce to log#4269eserilev wants to merge 13 commits intosigp:unstablefrom
Conversation
|
This seems fine to me, however CI is failing. Could you run |
…d-logging-debounce
michaelsproul
left a comment
There was a problem hiding this comment.
Looks good to me but I wouldn't mind input from e.g. @paulhauner on whether he thinks it's OK that we don't de-bounce the log messages by work_type. It could be kinda useful to get one new message for each work_type, but then again, if the node is overwhelmed maybe it doesn't matter too much what is hammering it.
I think if we did want to differentiate by work_type we'd need multiple latches, which might be more trouble than it's worth.
I like this PR but I also agree with Michael's point. Separately, I've been keen to see some metrics about which work events are being dropped by the To ensure we're always logging dropped messages, I don't think it would suffice to just add a metric where we're debouncing these logs since there are multiple places where this lighthouse/beacon_node/network/src/beacon_processor/mod.rs Lines 1170 to 1173 in c547a11 I'm open to doing this change separately if it's too much work for you at the moment @eserilev |
…d-logging-debounce
I like this idea, I can definitely include these changes as part of this PR. Thanks for the feedback |
…data on try_send error
|
@paulhauner I made some changes here that hopefully should reflect the discussions above. It's ready for another review when you get the chance. Thanks! |
|
I should also bounce error logs by work type, I'll push up those changes shortly |
…d-logging-debounce
you're right, we would need additional latches to debounce log by work type. That might make things messy. Since we are now increasing a counter metric per work type, that may be sufficient enough? |
paulhauner
left a comment
There was a problem hiding this comment.
I think this is great as is! Thanks @eserilev!
|
sorry, there was a linting issue that i just noticed on the new
I resolved by Boxing |
Thanks, I'm happy with this! I've refactored the |
|
bors r+ |
## Issue Addressed [#4259](#4259) ## Proposed Changes debounce spammy `Unable to send message to the beacon processor` log messages ## Additional Info We could potentially debounce other logs that have the potential to be "spammy". After some feedback we decided to additionally add the following change: create a newtype wrapper around `mpsc::Sender<BeaconWorkEvent<T>>`. When there is an error on the try_send method on the wrapper, we increase a counter metric with one label per work type.
|
Pull request successfully merged into unstable. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page.
|
## Issue Addressed [sigp#4259](sigp#4259) ## Proposed Changes debounce spammy `Unable to send message to the beacon processor` log messages ## Additional Info We could potentially debounce other logs that have the potential to be "spammy". After some feedback we decided to additionally add the following change: create a newtype wrapper around `mpsc::Sender<BeaconWorkEvent<T>>`. When there is an error on the try_send method on the wrapper, we increase a counter metric with one label per work type.
[sigp#4259](sigp#4259) debounce spammy `Unable to send message to the beacon processor` log messages We could potentially debounce other logs that have the potential to be "spammy". After some feedback we decided to additionally add the following change: create a newtype wrapper around `mpsc::Sender<BeaconWorkEvent<T>>`. When there is an error on the try_send method on the wrapper, we increase a counter metric with one label per work type.
[sigp#4259](sigp#4259) debounce spammy `Unable to send message to the beacon processor` log messages We could potentially debounce other logs that have the potential to be "spammy". After some feedback we decided to additionally add the following change: create a newtype wrapper around `mpsc::Sender<BeaconWorkEvent<T>>`. When there is an error on the try_send method on the wrapper, we increase a counter metric with one label per work type.
Issue Addressed
#4259
Proposed Changes
debounce spammy
Unable to send message to the beacon processorlog messagesAdditional Info
We could potentially debounce other logs that have the potential to be "spammy".
After some feedback we decided to additionally add the following change:
create a newtype wrapper around
mpsc::Sender<BeaconWorkEvent<T>>. When there is an error on the try_send method on the wrapper, we increase a counter metric with one label per work type.