forked from akka/akka
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request akka#2004 from akka/wip-3868-doc-remote-router-gro…
…up-patriknw =doc #3868 Clarify remote router group
- Loading branch information
Showing
5 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,24 +254,21 @@ Routers with Remote Destinations | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
It is absolutely feasible to combine remoting with :ref:`routing-java`. | ||
This is also done via configuration:: | ||
|
||
akka { | ||
actor { | ||
deployment { | ||
/serviceA/aggregation { | ||
router = "round-robin-pool" | ||
nr-of-instances = 10 | ||
target { | ||
nodes = ["akka.tcp://[email protected]:2552", "akka://[email protected]:2552"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
A pool of remote deployed routees can be configured as: | ||
|
||
.. includecode:: ../scala/code/docs/routing/RouterDocSpec.scala#config-remote-round-robin-pool | ||
|
||
This configuration setting will clone the actor defined in the ``Props`` of the ``remotePool`` 10 | ||
times and deploy it evenly distributed across the two given target nodes. | ||
|
||
A group of remote actors can be configured as: | ||
|
||
.. includecode:: ../scala/code/docs/routing/RouterDocSpec.scala#config-remote-round-robin-group | ||
|
||
This configuration setting will clone the actor “aggregation” 10 times and deploy it evenly distributed across | ||
the two given target nodes. | ||
This configuration setting will send messages to the defined remote actor paths. | ||
It requires that you create the destination actors on the remote nodes with matching paths. | ||
That is not done by the router. | ||
|
||
.. _remote-sample-java: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,28 @@ akka.actor.deployment { | |
} | ||
#//#config-consistent-hashing-group | ||
#//#config-remote-round-robin-pool | ||
akka.actor.deployment { | ||
/parent/remotePool { | ||
router = round-robin-pool | ||
nr-of-instances = 10 | ||
target.nodes = ["akka.tcp://[email protected]:2552", "akka://[email protected]:2552"] | ||
} | ||
} | ||
#//#config-remote-round-robin-pool | ||
#//#config-remote-round-robin-group | ||
akka.actor.deployment { | ||
/parent/remoteGroup { | ||
router = round-robin-group | ||
routees.paths = [ | ||
"akka.tcp://[email protected]:2552/user/workers/w1", | ||
"akka.tcp://[email protected]:2552/user/workers/w1", | ||
"akka.tcp://[email protected]:2552/user/workers/w1"] | ||
} | ||
} | ||
#//#config-remote-round-robin-group | ||
#//#config-resize-pool | ||
akka.actor.deployment { | ||
/parent/router25 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,24 +261,21 @@ Routers with Remote Destinations | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
It is absolutely feasible to combine remoting with :ref:`routing-scala`. | ||
This is also done via configuration:: | ||
|
||
akka { | ||
actor { | ||
deployment { | ||
/serviceA/aggregation { | ||
router = "round-robin-pool" | ||
nr-of-instances = 10 | ||
target { | ||
nodes = ["akka.tcp://[email protected]:2552", "akka.tcp://[email protected]:2552"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
A pool of remote deployed routees can be configured as: | ||
|
||
.. includecode:: ../scala/code/docs/routing/RouterDocSpec.scala#config-remote-round-robin-pool | ||
|
||
This configuration setting will clone the actor defined in the ``Props`` of the ``remotePool`` 10 | ||
times and deploy it evenly distributed across the two given target nodes. | ||
|
||
A group of remote actors can be configured as: | ||
|
||
.. includecode:: ../scala/code/docs/routing/RouterDocSpec.scala#config-remote-round-robin-group | ||
|
||
This configuration setting will clone the actor “aggregation” 10 times and deploy it evenly distributed across | ||
the two given target nodes. | ||
This configuration setting will send messages to the defined remote actor paths. | ||
It requires that you create the destination actors on the remote nodes with matching paths. | ||
That is not done by the router. | ||
|
||
.. _remote-sample-scala: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters