-
Notifications
You must be signed in to change notification settings - Fork 140
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
Perf[MQB]: throttle logs critical for broadcast #482
Conversation
Signed-off-by: Evgeny Malygin <[email protected]>
<< "pending PUSH messages"; | ||
BALL_LOG_DEBUG << d_state_p->uri() << ": " | ||
<< "no more timer scheduled to check expiration of " | ||
<< "pending PUSH messages"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same severity as a few lines above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good ,but maybe can be simplified
<< bmqt::AckResult::toAscii(ackResult); | ||
if (d_throttledCachedPutMessages.requestPermission()) { | ||
BALL_LOG_INFO << d_state_p->uri() << ": erased window of " | ||
<< numErased << " (" << d_expiredPutNum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d_expiredPutNum
is more like "total erased broadcast PUTs". But what is the meaning of this counter; why do we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are throttling logs, we still might want to know how many of these we skipped. Might be useful for debug, but also I'm okay to remove it.
<< " cached broadcasted PUTs upon " | ||
<< bmqt::AckResult::toAscii(ackResult); | ||
if (d_throttledCachedPutMessages.requestPermission()) { | ||
BALL_LOG_INFO << d_state_p->uri() << ": erased window of " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could very well be BALL_LOG_DEBUG
. This log does not have much importance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will redo it to debug then and remove the counter. Let's keep it simple.
Signed-off-by: Evgeny Malygin <[email protected]>
@dorjesinpo simplified the changes |
Logging every 500 cached PUTs expiration not only generates gigabytes of logs, but also potentially limits broadcast speed.