+act #18356 Metrics based resizer for router
This commit is contained in:
parent
fb80ac8acb
commit
90cba9ce0d
19 changed files with 904 additions and 17 deletions
|
|
@ -227,6 +227,19 @@ akka.actor.deployment {
|
|||
}
|
||||
#//#config-resize-pool
|
||||
|
||||
#//#config-optimal-size-exploring-resize-pool
|
||||
akka.actor.deployment {
|
||||
/parent/router31 {
|
||||
router = round-robin-pool
|
||||
optimal-size-exploring-resizer {
|
||||
enabled = on
|
||||
action-interval = 5s
|
||||
downsize-after-underutilized-for = 72h
|
||||
}
|
||||
}
|
||||
}
|
||||
#//#config-optimal-size-exploring-resize-pool
|
||||
|
||||
#//#config-pool-dispatcher
|
||||
akka.actor.deployment {
|
||||
/poolWithDispatcher {
|
||||
|
|
@ -462,6 +475,11 @@ router-dispatcher {}
|
|||
"router30")
|
||||
//#resize-pool-2
|
||||
|
||||
//#optimal-size-exploring-resize-pool
|
||||
val router31: ActorRef =
|
||||
context.actorOf(FromConfig.props(Props[Worker]), "router31")
|
||||
//#optimal-size-exploring-resize-pool
|
||||
|
||||
def receive = {
|
||||
case _ =>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue