-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Clustering with Jboss Messaging and not providing JNDI opt?
PostPosted: Tue Sep 09, 2008 2:27 pm 
Regular
Regular

Joined: Fri Oct 05, 2007 3:22 am
Posts: 69
Hello,

I would like to be able to configure the clustering support provided with Hibernate Search so that it doesn't require an explicit pointer to the master queue.

Any examples on how this is done?

I also want to be able to failover so that a slave can take the place of a master that fails.

In example configurations I have seen as well as in the book they explicitly define the <property name="hibernate.search.worker.jndi.url" value="jnp://localhost:1099"/> property.

Basically I want to be able to get rid of that option so that failover does not require a reconfiguration of the slaves to point to a new master.

Thanks


Top
 Profile  
 
 Post subject: Re: Clustering with Jboss Messaging and not providing JNDI o
PostPosted: Thu Sep 11, 2008 5:22 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

Quote:
I would like to be able to configure the clustering support provided with Hibernate Search so that it doesn't require an explicit pointer to the master queue.

How would you like this to work then? Using JMS, the slaves need to be able to find the queue to which do add the indexing jobs.

Quote:
I also want to be able to failover so that a slave can take the place of a master that fails.

This idea has several problems. Firstly, the slaves don't really know if the master goes down. They actually don't know the master. All they know is a JMS queue they post their work to. The only thing they can detect is whether the JMS queue fails. This does not mean that the master node itself is not working. Depending on your chosen JMS provider there are sveral ways to cope with failing JMS queues.
Secondly, even if a slave could detect whether a master went down or not, you would have a implement some sort of protocol to decide which slave takes over the role of the master.
The latest version of the book suggest to have a backup master node on standby which can either be manually or automatically (via some monitoring scripts) be activated. If you choose the automatic way you have to make sure of course that the original node does not come online after the backup has taken over.

Quote:
Basically I want to be able to get rid of that option so that failover does not require a reconfiguration of the slaves to point to a new master.

As said, that is taken care of already. Master and slaves are already decoupled by the JMS queue.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.