Removing deployId from config, should be replaced with patterns in deployment configuration that is checked towards the address
This commit is contained in:
parent
f993219f91
commit
b66d45ec6c
14 changed files with 43 additions and 99 deletions
|
|
@ -53,11 +53,7 @@ object Pi extends App {
|
|||
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker])
|
||||
|
||||
// wrap them with a load-balancing router
|
||||
val router = Routing.actorOf(
|
||||
RoutedProps.apply()
|
||||
.withConnections(workers)
|
||||
.withRoundRobinRouter
|
||||
.withDeployId("pi"))
|
||||
val router = Routing.actorOf(RoutedProps().withConnections(workers).withRoundRobinRouter, "pi")
|
||||
|
||||
// phase 1, can accept a Calculate message
|
||||
def scatter: Receive = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue