Hi there,

I'd like to ask if it's possible to create and deploy an actor (one or more 
on each node, each with a different constructor arg i.e server name) in a 
cluster without a router. Something like with remoting where I can only 
specify that for a certain actor path I want it to be created remotely on a 
given address, but in the cluster I would only specify to create and deploy 
it somewhere on a cluster node with a certain role which has i.e. most 
memory available.
I have tried several configuration but without any success.

I 'd like to use something like:

deployment {
      /myClusterActorOnePerServer {

         router = adaptive
         metrics-selector = heap         cluster {

enabled = on
user-role = backend
 allow-local-routees = on
}

        
      }
}

and then, when creating an actor, I would write

val serverDataFetcher = context.actorOf(ServerDataFetcher.props("serverName"), 
"myClusterActorOnePerServer") 

which would grab the configuration from the config and create and deploy the 
actor somewhere in the cluster. 
Allowing to have for instance two data fetching actors on one node and one data 
fetcher on a different node, based on memory available 
on each node at the time of actors creation.

Any help or advices appreciated.

Thanks

Jakub


-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to