[akka-user] cluster sharding failover

2014-02-17 Thread James Bellenger
Hi gang, a question regarding shard failover Here's my 3-node setup (using akka-2.3.0 rc3): - backend 1 - backend 2 - frontend All nodes initialize ClusterSharding at startup -- frontend supplies an empty entryProps so that it does not host any regions. Frontend starts pinging a range

Re: [akka-user] Configure cluster nodes n AdaptiveLoadBalancingPool dynamically

2014-02-17 Thread Patrik Nordwall
On Mon, Feb 17, 2014 at 6:53 PM, Zoran Jeremic wrote: > Hi Patrik, > > Thank you for your answer. It really helps me to clarify the thinks I was > not sure. In the meantime, I managed to make it works with one seed only. > > The reason I'm using only one seed is to save me some extra amount of >

Re: [akka-user] Singleton pattern and Router dynamics

2014-02-17 Thread Patrik Nordwall
On Mon, Feb 17, 2014 at 5:58 PM, Andrea Salvadore < andrea.salvad...@gmail.com> wrote: > Hi Patrick, thanks for your answer. > > What is the read actors doing? Is the state of the write actor > replicated to the read actors, or what is the purpose? > > Yes, my initial solution had read and write a

Re: [akka-user] Configure cluster nodes n AdaptiveLoadBalancingPool dynamically

2014-02-17 Thread Zoran Jeremic
Hi Patrik, Thank you for your answer. It really helps me to clarify the thinks I was not sure. In the meantime, I managed to make it works with one seed only. The reason I'm using only one seed is to save me some extra amount of work. My application is in use, but I'm still developing it and

Re: [akka-user] Singleton pattern and Router dynamics

2014-02-17 Thread Andrea Salvadore
Hi Patrick, thanks for your answer. > What is the read actors doing? Is the state of the write actor replicated to the read actors, or what is the purpose? Yes, my initial solution had read and write actors sharing the state via messages. I've changed the solution slightly and now I am sharing s

Re: [akka-user] Singleton pattern and Router dynamics

2014-02-17 Thread Patrik Nordwall
Hi, On Sat, Feb 15, 2014 at 11:47 AM, Andrea Salvadore < andrea.salvad...@gmail.com> wrote: > Hi all, > I am writing an application using play and akka. I would like to > understand a bit better how the cluster singleton and the router actually > work. > > I have multiple instances of the same p

Re: [akka-user] Using ActorSelection to check if actor exists

2014-02-17 Thread Patrik Nordwall
Hi, You can send an akka.actor.Identify("hello") and the actor will reply with akka.actor.ActorIdentity("hello", Some(actorRef)) message, if it exists. If it doesn't exist the reply will be akka.actor.ActorIdentity("hello", None), but this message (as all messages) can be lost and then you will no

Re: [akka-user] self ! message doesn't work

2014-02-17 Thread Patrik Nordwall
Hi, That looks correct and should work. Have you enabled DEBUG log level? Regards, Patrik On Mon, Feb 17, 2014 at 7:13 AM, wrote: > class TaskActor extends Actor with ActorLogging { > > import context._ > > override def preStart { > self ! "meaaage" > } > def receive = { > cas

Re: [akka-user] Configure cluster nodes n AdaptiveLoadBalancingPool dynamically

2014-02-17 Thread Patrik Nordwall
Hi Zoran, Glad that you got it working. Using only one seed should be possible, but only one can have itself as seed node. E.g. node1 may have seed-nodes=[node1] node2 may have seed-nodes=[node1] node3 may have seed-nodes=[node1] then, later on, when the cluster is running, you could use any oth

Re: [akka-user] Running/Debugging Akka Bootable classes from Intellij

2014-02-17 Thread Patrik Nordwall
Hi CC, You can run main class akka.kernel.Main with the full class name of your Bootable as program argument. Cheers, Patrik On Fri, Feb 14, 2014 at 11:27 PM, wrote: > Hi everyone, > > How do I debug or run my akka bootable classes from Intellij? > > I've googled and looked at the documentati