-
1. Re: Message redistribution: what if a node never comes back?
ataylor May 26, 2011 4:23 AM (in response to kennardconsulting)1 of 1 people found this helpfulyes, if a node goes down then any messages on this node will not be available. For this you need to enable failover by configuring a backup node for each live server.
-
2. Re: Message redistribution: what if a node never comes back?
kennardconsulting May 26, 2011 5:34 AM (in response to ataylor)Andy,
Many thanks for your reply!
This would seem a loss of functionality compared to JBoss Messaging? Specifically, on JBoss 5.1.0.GA we had 3 nodes that were all sharing the processing of, say, 3 thousand messages (out of a DB-backed queue). If one of these nodes went down after say, 500 messages, the others would still 'take up the slack' and complete processing of all 3 thousand. They may dynamically decide to finish off 1.25 thousand each.
But now it would seem that processing will stop after, say, 2 thousand messages and wait until the stuck node comes back up, whereupon it can finish processing its remaining 500 messages? Given that one of the nodes may fail overnight, and needs to be manually brought back up, this is a bit awkward.
Is there any way to configure HornetQ to function as JBoss Messaging did? To complete processing of all messages, even if one node goes down?
Richard.
-
3. Re: Message redistribution: what if a node never comes back?
ataylor May 26, 2011 5:44 AM (in response to kennardconsulting)This would seem a loss of functionality compared to JBoss Messaging? Specifically, on JBoss 5.1.0.GA we had 3 nodes that were all sharing the processing of, say, 3 thousand messages (out of a DB-backed queue). If one of these nodes went down after say, 500 messages, the others would still 'take up the slack' and complete processing of all 3 thousand. They may dynamically decide to finish off 1.25 thousand each.
It is not a loss of functionality as you can obtain the same functionality by providing backup servers. Its more conig and extra servers yes but with this comes higher reliablity and better scalability. With JbossMessaging you have a single point of failure, if your db or db connection goes down you are basically stuffed. ALso using a journal gives you much better performance
But now it would seem that processing will stop after, say, 2 thousand messages and wait until the stuck node comes back up, whereupon it can finish processing its remaining 500 messages? Given that one of the nodes may fail overnight, and needs to be manually brought back up, this is a bit awkward.
Backup servers will automatically start once a live server goes down
Is there any way to configure HornetQ to function as JBoss Messaging did? To complete processing of all messages, even if one node goes down?
As above
-
4. Re: Message redistribution: what if a node never comes back?
kennardconsulting May 26, 2011 5:47 AM (in response to kennardconsulting)Andy,
Okay thanks for your informative answers.
This is a bit of a 'mindset shift' to what we're used to, so we'll have to give it some more thought!
Regards,
Richard.
-
5. Re: Message redistribution: what if a node never comes back?
ataylor May 26, 2011 5:51 AM (in response to kennardconsulting)we have done a lot of work around this to make things easier to configure, this was mostly for eap platform and is in hornetq 2.2.2, it should be possible to locate live and backup servers on the same AS instance. what versions are you using
-
6. Re: Message redistribution: what if a node never comes back?
kennardconsulting May 26, 2011 5:57 AM (in response to ataylor)I am using the stock JBoss 6.0.0.Final.
Regards,
Richard.
-
7. Re: Message redistribution: what if a node never comes back?
ataylor May 26, 2011 5:59 AM (in response to kennardconsulting)ok, that uses hornetq 2.1.2 so you can either have dedicated backup servers ot move to hornetq 2.2.2, or wait for as 7
-
8. Re: Message redistribution: what if a node never comes back?
kennardconsulting May 26, 2011 6:07 AM (in response to ataylor)We can certainly consider moving to 2.2.2. Can you point me to some docs that explain what you mean by 'it should be possible to locate live and backup servers on the same AS instance'?
Richard.
-
9. Re: Message redistribution: what if a node never comes back?
ataylor May 26, 2011 6:20 AM (in response to kennardconsulting)currently this is only in the eap manual altho if you checkout trunk you can build it, its under docs/