Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Failover pattern

Reply
Thread Tools

Failover pattern

 
 
noone
Guest
Posts: n/a
 
      04-06-2004

2 or more hosts, each running the same application.
Each Java application on each host is assigned a specific task.
Say:

App on host1 does task X
App on host2 does task Y
App on host3 does task Z

Only one app can do any specific task.

Now, if app on host1 shutsdown for whatever reason, either app on host2 or host3 should take over task X.
I was thinking of implementing this with UDP ... but someone may have already done this ... without using a database.

Is there a design pattern for the above ... basically a failover pattern ?




 
Reply With Quote
 
 
 
 
noone
Guest
Posts: n/a
 
      04-06-2004
noone wrote:

>
> 2 or more hosts, each running the same application.
> Each Java application on each host is assigned a specific task.
> Say:
>
> App on host1 does task X
> App on host2 does task Y
> App on host3 does task Z
>
> Only one app can do any specific task.
>
> Now, if app on host1 shutsdown for whatever reason, either app on host2
> or host3 should take over task X.
> I was thinking of implementing this with UDP ... but someone may have
> already done this ... without using a database.
>
> Is there a design pattern for the above ... basically a failover pattern ?
>


The pattern described here provides some choices:

http://www.embedded.com/story/OEG20020729S0030

# Standby backup. While the primary module runs in the system, a backup module is waiting in "standby," watching the primary module for faults and ready to fire up and take over. For example, high-availability web servers can be designed using this
approach.

# Rotating standby. While the primary module runs in the system, there may be a number of backup modules. One backup will take over running the system in case of a fault in the primary. The flight computers on the space shuttle have been designed
with this philosophy: the primary module consists of a pair of computers that must always agree with one another. The first backup module is a similar pair. But the second backup module on the space shuttle is a single computer that can take over
only via human command.

# Failover to non-critical module. The primary module runs the critical resources of the system. A backup module can run other non-critical things, but it can take over the most critical services of the primary in case of fault. This is what we do,
as humans, when a PC's high-speed Internet connection fails as we're trying to send an urgent e-mail, and we quickly switch over to that old modem we never thought we'd need again.

# Mutual takeover. Each module runs its own critical resources, but can take over the critical resources of another module in case of fault. For example, in a cardiac intensive care ward, there should be a heart monitoring computer for every eight
patients. But each one can handle an additional eight patients (perhaps with some graceful degradation) if a neighboring heart monitoring computer goes down.


Simplest maybe for me is either the standby or rotatin standby approach


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cisco ASA/PIX failover and VPN, failover IP access problem Pit Cisco 0 08-27-2008 03:34 PM
May I have a example of design pattern of "composite", I still feel fuzzy after reading book of Addison-Wesley's"design pattern " jones9413@yahoo.com C++ 1 08-31-2007 04:09 AM
documents related to factory design pattern and Abstract foctory pattern. sunny C++ 1 12-07-2006 04:26 AM
boolean endsWith(String s, Pattern pattern) lepikhin@gmail.com Java 17 11-16-2005 10:31 AM
Stateful NAT failover = yes. Stateful CBAC failover = ???? Alec Waters Cisco 0 06-09-2004 01:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57