java - Configuring Dispatcher for akka logging -
i dug akka's sources , figured out uses called buslogging
class publishes messages eventstream
. eventstream::publish(event: event)
in turns publishes event receivers in cache: map.empty[classifier, set[subscriber]]
.
i found logging being performed /system/log1-slf4jlogger
actor. documentation says:
the event handler actor not have bounded inbox , is run on the default dispatcher. means logging extreme amounts of data may affect application badly. can mitigated making sure use async logging backend though.
is there way move dispatcher configure way want?
you may configure adding these params application.conf
file:
akka.loggers-dispatcher = "my-blocking-dispatcher" my-blocking-dispatcher { type = dispatcher executor = "thread-pool-executor" thread-pool-executor { fixed-pool-size = 4 } throughput = 1 }
akka config reference: http://doc.akka.io/docs/akka/2.5/scala/dispatchers.html http://doc.akka.io/docs/akka/2.5.4/scala/general/configuration.html#config-akka-remote
Comments
Post a Comment