File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -70,4 +70,21 @@ hmda {
70
70
zookeeperPort = ${?ZOOKEEPER_PORT}
71
71
}
72
72
73
+ api-dispatcher {
74
+ type = Dispatcher
75
+ executor = "fork-join-executor"
76
+ fork-join-executor {
77
+ # Min number of threads to cap factor-based parallelism number to
78
+ parallelism-min = 2
79
+ # Parallelism (threads) ... ceil(available processors * factor)
80
+ parallelism-factor = 2.0
81
+ # Max number of threads to cap factor-based parallelism number to
82
+ parallelism-max = 10
83
+ }
84
+ # Throughput defines the maximum number of messages to be
85
+ # processed per actor before the thread jumps to the next actor.
86
+ # Set to 1 for as fair as possible.
87
+ throughput = 100
88
+ }
89
+
73
90
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ object HmdaPlatform {
34
34
val system = ActorSystem (configuration.getString(" clustering.name" ), configuration)
35
35
val supervisor = createSupervisor(system)
36
36
val querySupervisor = createQuerySupervisor(system)
37
- implicit val ec = system.dispatcher
37
+ implicit val ec = system.dispatchers.lookup( " api- dispatcher" )
38
38
39
39
startActors(system, supervisor, querySupervisor)
40
40
startApi(system, querySupervisor)
You can’t perform that action at this time.
0 commit comments