add conf override to Pi sample, see #1763
This commit is contained in:
parent
9ba5043539
commit
96486428e1
3 changed files with 31 additions and 0 deletions
|
|
@ -397,6 +397,18 @@ When this in done we can run our application directly inside Maven::
|
|||
|
||||
Yippee! It is working.
|
||||
|
||||
Overriding Configuration Externally
|
||||
-----------------------------------
|
||||
|
||||
The sample project includes an ``application.conf`` file in the resources directory:
|
||||
|
||||
.. includecode:: ../../akka-tutorials/akka-tutorial-first/src/main/resources/application.conf
|
||||
|
||||
If you uncomment the two lines, you should see a change in performance,
|
||||
hopefully for the better. It should be noted that overriding only works if a
|
||||
router type is given, so just uncommenting ``nr-of-instances`` does not work;
|
||||
see :ref:`routing-java` for more details.
|
||||
|
||||
Conclusion
|
||||
----------
|
||||
|
||||
|
|
|
|||
|
|
@ -442,6 +442,18 @@ When this in done we can run our application directly inside SBT::
|
|||
|
||||
Yippee! It is working.
|
||||
|
||||
Overriding Configuration Externally
|
||||
===================================
|
||||
|
||||
The sample project includes an ``application.conf`` file in the resources directory:
|
||||
|
||||
.. includecode:: ../../akka-tutorials/akka-tutorial-first/src/main/resources/application.conf
|
||||
|
||||
If you uncomment the two lines, you should see a change in performance,
|
||||
hopefully for the better. It should be noted that overriding only works if a
|
||||
router type is given, so just uncommenting ``nr-of-instances`` does not work;
|
||||
see :ref:`routing-scala` for more details.
|
||||
|
||||
Conclusion
|
||||
==========
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
akka.actor.deployment {
|
||||
/master/workerRouter {
|
||||
# Uncomment the following two lines to change the calculation to use 10 workers instead of 4:
|
||||
#router = round-robin
|
||||
#nr-of-instances = 10
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue