One way to do this is to use the JGroups coordinator as the master... On 6 Aug 2009, at 15:59, Sanne Grinovero wrote:
> Hello, > from what I recall of latest updates about the creation of an > Infinispan-backed Hibernate Search DirectoryProvider > to store Lucene's indexes, you're going to focus on having one > "Master" indexer which will take care of all the writing > to the index. > So Infinispan will take care of safely replicating the index to slave > nodes, but IMHO we should also consider the way the "Master" is being > selected; from my understanding the master node has to be configured > differently, this is not going to make it safer and > is a pain to manage in a cloud environment. > AFAIK the JBoss Cache has some code to "elect" a master node for buddy > replication, would it be possible to expose the same > logic in Infinispan's API to make sure to auto-discover and auto-elect > the "Hibernate Search Master Node" ? > > Something like "whoever is the owner of this marker token is the > master"? Would that make sense? > > Sanne > _______________________________________________ > infinispan-dev mailing list > infinispan-...@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/infinispan-dev -- Manik Surtani ma...@jboss.org Lead, Infinispan Lead, JBoss Cache http://www.infinispan.org http://www.jbosscache.org _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev