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 usage of roles and proxy only more obvious. On Thu, Aug 6, 2015 at 5:44 PM, Yifei <[email protected]> wrote: > 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 >> shard region, there is always no oldest state actors, and I don't know >> where the coordinator is located >> >> The log looks like this: >> >> [INFO] [08/06/2015 11:23:31.684] >> [OMSAkkaCluster-akka.actor.default-dispatcher-20] >> [akka.tcp://MyCluster@abc:13598/user/sharding/Test1Coordinator] >> ClusterSingletonManager state change [Start -> Younger] >> >> Is there any properties I must set? For example, the roles property >> >> Thanks, >> >> -- > >>>>>>>>>> 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. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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.
