Internal dispatcher to protect against starvation (#26816)
* Allow for dispatcher aliases and define a internal dispatcher * Test checking dispatcher name * MiMa for Dispatchers * Migration guide entry * No need to have custom dispatcher lookup logic in streams anymore * Default dispatcher size and migration note about that * Test checking exact config values... * Typed receptionist on internal dispatcher * All internal usages of system.dispatcher gone through
This commit is contained in:
parent
e34a711adf
commit
81b1e2ef9b
57 changed files with 524 additions and 329 deletions
|
|
@ -146,6 +146,8 @@ private[remote] class Remoting(_system: ExtendedActorSystem, _provider: RemoteAc
|
|||
|
||||
import provider.remoteSettings._
|
||||
|
||||
private implicit val ec = system.dispatchers.lookup(Dispatcher)
|
||||
|
||||
val transportSupervisor = system.systemActorOf(configureDispatcher(Props[TransportSupervisor]), "transports")
|
||||
|
||||
override def localAddressForRemote(remote: Address): Address =
|
||||
|
|
@ -167,7 +169,6 @@ private[remote] class Remoting(_system: ExtendedActorSystem, _provider: RemoteAc
|
|||
endpointManager = None
|
||||
}
|
||||
|
||||
import system.dispatcher
|
||||
(manager ? ShutdownAndFlush)
|
||||
.mapTo[Boolean]
|
||||
.andThen {
|
||||
|
|
@ -252,7 +253,6 @@ private[remote] class Remoting(_system: ExtendedActorSystem, _provider: RemoteAc
|
|||
|
||||
override def managementCommand(cmd: Any): Future[Boolean] = endpointManager match {
|
||||
case Some(manager) =>
|
||||
import system.dispatcher
|
||||
implicit val timeout = CommandAckTimeout
|
||||
(manager ? ManagementCommand(cmd)).map { case ManagementCommandAck(status) => status }
|
||||
case None =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue