Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

Failover using cache

Vijay vivek
Occasional Visitor

Failover using cache


Can any body tell me how to develop a failover between servers using the cache code.

I am creating a website which is furnished by two servers to achieve data availability. I'm just struggling in processing the failover between these servers. I just need the exact code to perform automatic failover.
1. If the primary server fails, the secondary server should take the responsibility of theprimary server till it attains its normal.
2. If the primary server resets, the primary server should be automatically take the charge.

It's urgent; Provide me with a failover code...
vijay vivek
Steven E. Protter
Exalted Contributor

Re: Failover using cache


I would suggest serviceguard, not code, for true reliability.


Use rsync to keep data synched between the active node and the backup node, when people change content.

Direct all web traffic to a floating IP address that moves from node to node depending on which one is active.

Configure a serviceguard package to take care of the above tasks and starting the httpd server on the active node.

Steven E Protter
Owner of ISN Corporation
Vijay vivek
Occasional Visitor

Re: Failover using cache

Thanks but i was not clear about what is service guard