Hi, If you want to limit which nodes that will host shard regions you must assign them a role and specify that role with akka.cluster.sharding.role. Then you must start sharding on all nodes with that role. Maybe this is the problem you are having.
Sharding has got pretty extensive debug logging, enable debug logging and maybe it can help you figure it out. Cheers -- Johan Akka Team On Tue, Feb 28, 2017 at 11:07 AM, Dai Yinhua <[email protected]> wrote: > Hi Akka team, > > I am developing an application with cluster sharding. > And I have below deployment: > server1(3 jvms): seed 1, seed 2, endpoint > server2(2 jvms): worker 1, worker 2 > server3(2 jvms): worker 1, worker 2 > > The seed instance will act only the role of seed, no shard region is > started. > The endpoint instance will start shardregion proxy, which is used to > accept external requests. > The worker instance will start shard region to do actual work. > > But the sharding function is not working with this deployment, I get error > messages to send message to the singleton shardcoordinator, looks like > shard coordinator is not started. > > I realised that the singleton actor is running on the leader node, so in > my case, the lead node is the seed 1, is the error caused by the shard > region is not started in the seed node? > When I use worker 1 as the seed node, the sharding function is working > correctly. > > Can you help to check what is the problem? > Thank you. > > -- > >>>>>>>>>> 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 https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
