PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 16, 2019 12:15 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Sep 25, 2009 7:45 am 
Offline
DevNet Resident
User avatar

Joined: Wed Jun 18, 2008 8:32 am
Posts: 1483
Location: Surrey
If 1 server goes down, is it possible to have another fill the void (at a different location)?

I am aware of heart beat. Is this the only way? Is it easy to setup?

Thanks


Top
 Profile  
 
PostPosted: Fri Sep 25, 2009 8:33 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria
What do you mean by "server"?
What do you mean by "at a different location"?

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
PostPosted: Fri Sep 25, 2009 8:38 am 
Offline
DevNet Resident
User avatar

Joined: Wed Jun 18, 2008 8:32 am
Posts: 1483
Location: Surrey
Basically, I have a webserver with rapidswitch in london. If this goes down can it failover to my spare box at home?


Top
 Profile  
 
PostPosted: Fri Sep 25, 2009 3:06 pm 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria
The simplest fail over requires that the slave (your machine at home) is able to acquire the same IP address as the master one. This in turn, usually requires that the two machines are in the same physical network, so IP routing can be done. In your case I really can't see how you can accomplish this.

Because your machines have different IP-s, you should also modify your DNS zone file when fail over occurs. This means that you have to use very short TTL for your domain zone (e.g. one minute). This also means that in the worst case you'll have DNS-TTL-time of down time (because some users may already cached your DNS answers). A short TTL will increase the number of DNS requests your DNS server have to answer.

Finally, you have to take care of user sessions related issues - you need to replicate these sessions on the slave machine. Maybe a DB session storage would solve this issue.

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group