Dear all

I'm trying to use a custom dispatcher.

In `application.conf` I have defined the following:

akka.actor.deployment {

    # httpTriplestoreRouter

    /storeManager/triplestoreManager/httpTriplestoreRouter {
        dispatcher = my-httpTriplestoreConnector-dispatcher
        router = round-robin-pool
        nr-of-instances = 10
    }

}


my-httpTriplestoreConnector-dispatcher {
    type = "Dispatcher"

    executor = "fork-join-executor"

    fork-join-executor {
        parallelism-min = 8
        parallelism-factor = 2.0
        parallelism-max = 64
    }
}



In the code I have the following:

 makeActor(FromConfig.props(Props[HttpTriplestoreConnectorInstrumented]), name 
= HTTP_TRIPLESTORE_ACTOR_NAME)


This does not work. The dispatcher is not used.

For the dispatcher to be used, I need to specify it in code:

makeActor(FromConfig.props(Props[HttpTriplestoreConnectorInstrumented]).withDispatcher("my-httpTriplestoreConnector-dispatcher"),
 name = HTTP_TRIPLESTORE_ACTOR_NAME)


The documentation I'm following is: configuration.html 
<https://doc.akka.io/docs/akka/2.5/general/configuration.html#actor-deployment-configuration>

Any idea what I'm doing wrong?

Cheers,
Ivan

-- 
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
>>>>>>>>>> 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to