Skip to content

Instantly share code, notes, and snippets.

@Aaronontheweb
Last active December 6, 2023 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aaronontheweb/97b955723c32685b07f4428df5920688 to your computer and use it in GitHub Desktop.
Save Aaronontheweb/97b955723c32685b07f4428df5920688 to your computer and use it in GitHub Desktop.
ChannelDispatcherHocon
akka.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
}
akka.actor.default-dispatcher = {
executor = channel-executor
fork-join-executor { #channelexecutor will re-use these settings
parallelism-min = 2
parallelism-factor = 1
parallelism-max = 64
}
channel-executor.priority = "low"
}
akka.actor.internal-dispatcher = {
executor = channel-executor
throughput = 5
fork-join-executor {
parallelism-min = 16
parallelism-factor = 1.0
parallelism-max = 64
}
channel-executor.priority = "high"
}
akka.remote.default-remote-dispatcher {
type = Dispatcher
executor = channel-executor
fork-join-executor {
parallelism-min = 4
parallelism-factor = 0.5
parallelism-max = 32
}
channel-executor.priority = "high"
}
akka.remote.backoff-remote-dispatcher {
executor = channel-executor
fork-join-executor {
parallelism-min = 2
parallelism-max = 2
}
channel-executor.priority = "low"
}
akka.actor.internal-dispatcher {
type = Dispatcher
executor = fork-join-executor
throughput = 5
fork-join-executor {
parallelism-min = 4
parallelism-factor = 1.0
parallelism-max = 8
}
}
akka.remote.default-remote-dispatcher {
type = Dispatcher
executor = fork-join-executor
fork-join-executor {
parallelism-min = 2
parallelism-factor = 0.5
parallelism-max = 16
}
}
akka.remote.backoff-remote-dispatcher {
executor = fork-join-executor
fork-join-executor {
parallelism-min = 2
parallelism-max = 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment