[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Failover on LargeMessages
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Dec 19 10:50:39 EST 2008
anonymous wrote : II - I can't just let the backup-node call largeMessageSender.send, or the backup could be running faster than the server. (Running out of Credits first for instance).
This is the main issue.
When I send a message from Server2Client, I will verify that is a LargeMessage, and start a loop on sending the several chunks.
If I just call largeMessageSender.send on the backup, I could the backup flooding flowControl before the liveNode. A lot of uncertain events could happen followed after that.
Example...
- Master will send an 1G Message.
- It will replicate the send to the backup
- Backup will start sending the 1G Message. It will immediately flood flow control. (There is no actual sending on backup).
- Master will receive credits and replicate them to backup
- Master will send another 1G Message
(Eventually, the backup will still be sending the previous message, I have seen situations where the flowControl still full on backup, and that will reject replications from the masterNode).
We need a sync between Master and Backup to solve that. Or I implement that sync chunk by chunk, and failover would resume from that chunk, Or I sync just a start and end, and failover would reset the pointers and file and resume from the beggining of the file again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197679#4197679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197679
More information about the jboss-dev-forums
mailing list