-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Suppress extremely chatty TimerScheduler debug messages #7102
Suppress extremely chatty TimerScheduler debug messages #7102
Conversation
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.
LGTM
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.
LGTM
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.
Need to make some optimizations around config loading
|
||
public TimerScheduler(IActorContext ctx) | ||
{ | ||
_ctx = ctx; | ||
_log = _ctx.System.Log; | ||
_logDebug = ctx.System.Settings.Config.GetBoolean("akka.actor.debug.log-timers"); |
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.
Eh, one wrinkle here - it's better to have this setting get pulled into the Settings
class once rather than parsed by each and every actor that uses the scheduler. For processes with a large number of actors that overhead + allocations from the parser can become significant. It's not a big deal when running a small number of actors that use IWithTimers
, but if you're running hundreds of thousands that can add up.
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.
good idea
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.
LGTM
Changes
TimerScheduler
will emit debug messages.TimerScheduler
debug messages