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
Channel executor not injected #5544
Conversation
var config = @" | ||
akka.actor.default-dispatcher = { | ||
executor = channel-executor | ||
channel-executor.priority = normal |
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.
channel-executor
not injected when channel-executor.priority
is not explicitly set by user @Zetanova @Aaronontheweb
var cfg = config.GetConfig("channel-executor"); |
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.
I made already some improvements to config loading in PR #5515
The channel-scheduler is a standalone component and akka.channel-scheduler
is correct,
but I copied the default config block into the wrong place in the default config:
akka.net/src/core/Akka/Configuration/Pigeon.conf
Lines 272 to 279 in 405dfc5
channel-scheduler { | |
parallelism-min = 4 #same as for ForkJoinDispatcher | |
parallelism-factor = 1 #same as for ForkJoinDispatcher | |
parallelism-max = 64 #same as for ForkJoinDispatcher | |
work-max = 10 #max executed work items in sequence until priority loop | |
work-interval = 500 #time target of executed work items in ms | |
work-step = 2 #target work item count in interval / burst | |
} |
Please change the default config in Pigeon.conf
and not akka.channel-scheduler
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 fact needs to be documented properly, it does not reflect what we have right now in the documentation here:
https://getakka.net/articles/actors/dispatchers.html#channelexecutor
Need to add these codes here: https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka/Configuration/Pigeon.conf#L354
|
Also need to document these enum values in the code above: https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka/Dispatch/ChannelSchedulerExtension.cs#L456-L467 |
The fact that Idle and Background are set for the same value - does that seem like a mistake? |
I put only all names from windows process priority into the enum See: |
I can't merge this, it still doesn't address the original issue |
Yes @Arkatufus it does not. This was like showing what the issue was and luckily @Zetanova already created a PR that addresses that! We can actually close this, right? @Aaronontheweb |
No, his PR does not address this issue. |
|
The real issue here is that the old channel-executor HOCON still needs to work, but right now it doesn't. We need to add a backwards compat spec and make sure the old HOCON can cause the system to load the new code. |
I
@Aaronontheweb The config section of |
Superseeded by #5568 |
Fixes #5541
Changes
From
var config = system.Settings.Config.GetConfig("akka.channel-scheduler");
tovar config = system.Settings.Config.GetConfig("akka.actor.channel-scheduler");