[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Server side HA and failover

timfox do-not-reply at jboss.com
Thu Oct 26 10:45:11 EDT 2006


Off the top of my head, this is more or less what you want to do:

Let's say the failed node is node 1, and the fail over node is node 2.

The post offices at node 2 will detect that a server has failed (via JGroups).

They then look in their node->failover node mapping to determine whether it must take over responsibility for the failed node.

node2 is marked as a failover node for node 1 in the mapping so the post offices at node 2 now realise that they must take over responsibility for the
failed nodes queues.

They then do the following:

Take the name map for node 1 and move all the entries to the name map for node 1. Change the names of the queues by suffixing with node id to ensure they
are unique.

Replace the remote queue stubs with local clustered queues and load them, keep note of the new local clustered queues for the next step.

Now iterate through the condition map.

For each cluster router on each condition map entry, iterate through the entries in the router. For each one from node 1, replace with the relevant
localclusteredQueue from the previous step.

Server side fail over should now be complete.

The next step will be client reconnection from the client side.

When a consumer is reconnected to the queue, just need to look it up with the new name (the old name suffix the node id) and hey presto.

There should be no need for any post office signature changes AFAIK.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981039#3981039

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981039



More information about the jboss-dev-forums mailing list