[hibernate-dev] Election of Hibernate Search "master" indexer on top of Infinispan

Sanne Grinovero sanne.grinovero at gmail.com
Thu Aug 6 10:59:22 EDT 2009


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



More information about the hibernate-dev mailing list