Re: [akka-user] Re: Coordinator in cluster sharding: No oldest node

2015-08-12 Thread Patrik Nordwall
We have improved the way roles and proxies work significantly in 2.4-M2: http://doc.akka.io/docs/akka/2.4-M2/scala/cluster-sharding.html On Mon, Aug 10, 2015 at 9:41 PM, Yifei wrote: > Thanks Patrik, > > I have the scenario shown below: > > There are 3 shard regions, A, B and C, A send messages

Re: [akka-user] Re: Coordinator in cluster sharding: No oldest node

2015-08-10 Thread Yifei
Thanks Patrik, I have the scenario shown below: There are 3 shard regions, A, B and C, A send messages to B, B forwards them to C and C will process them and send back to B ShardRegion A -> ShardRegion B <-> ShardRegion C A has proxy of B B has proxy of C C has proxy of B This will work if I

Re: [akka-user] Re: Coordinator in cluster sharding: No oldest node

2015-08-07 Thread Patrik Nordwall
You can only specify one role in Akka 2.3.x. In 2.4-M2 you can use different settings for each entity type. E.g. User enities can run on nodes with roleX and ShoppingCart enities can run on nodes with roleY. fre 7 aug 2015 kl. 17:33 skrev Yifei : > Thanks Patrik, > > Can i define multiple roles in

Re: [akka-user] Re: Coordinator in cluster sharding: No oldest node

2015-08-07 Thread Yifei
Thanks Patrik, Can i define multiple roles in akka.contrib.cluster.sharding.role? If I have a dispatcher shard region, which starts multiple different proxies and dispatches messages to those shardregions via the proxy, how should I define the akka.contrib.cluster.sharding.role? If I understa

Re: [akka-user] Re: Coordinator in cluster sharding: No oldest node

2015-08-06 Thread Patrik Nordwall
The purpose of the role is to define that the shards are only supposed to run on a subset of the nodes, the ones tagged with the specified role. If you start it on a node that does not have this role it will be started in proxy only mode. By the way, we have changed this in 2.4-M2 to make the usag

[akka-user] Re: Coordinator in cluster sharding: No oldest node

2015-08-06 Thread Yifei
After I set akka.contrib.cluster.sharding.role to the same role in akka.cluster.role, it works. What does akka.contrib.cluster.sharding.role mean? On Thursday, August 6, 2015 at 11:37:28 AM UTC-4, Yifei wrote: > > Hi, > > I have two seeds nodes up in my cluster. When I tried to start a new sha