Skip to content

Commit 519e9c6

Browse files
committed
Validation dispatcher
1 parent 52e2ecc commit 519e9c6

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

validation/src/main/resources/application.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@ akka {
33
loglevel = "OFF"
44
log-dead-letters = off
55
log-dead-letters-during-shutdown = off
6+
7+
actor {
8+
deployment {
9+
/validation-stats {
10+
dispatcher = validation-dispatcher
11+
}
12+
}
13+
}
14+
}
15+
16+
validation-dispatcher {
17+
type = Dispatcher
18+
executor = "fork-join-executor"
19+
fork-join-executor {
20+
# Min number of threads to cap factor-based parallelism number to
21+
parallelism-min = 2
22+
# Parallelism (threads) ... ceil(available processors * factor)
23+
parallelism-factor = 2.0
24+
# Max number of threads to cap factor-based parallelism number to
25+
parallelism-max = 10
26+
}
27+
# Throughput defines the maximum number of messages to be
28+
# processed per actor before the thread jumps to the next actor.
29+
# Set to 1 for as fair as possible.
30+
throughput = 100
631
}
732

833
hmda {

validation/src/main/scala/hmda/validation/ValidationStats.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ class ValidationStats extends HmdaPersistentActor {
108108

109109
override def persistenceId: String = s"$name"
110110

111-
override def preStart(): Unit = {
112-
log.info(s"Actor started at ${self.path}")
113-
}
114-
115111
var state = ValidationStatsState()
116112

117113
override def updateState(event: Event): Unit = {

0 commit comments

Comments
 (0)