Web Host Chat
Bringing Hosts & Customers together since 2001
Home QLinks Members Your Profile Register FAQ's Hosts Only Area SMS Alerts Game Servers
User Information
»REGISTER NOW!

Go Back   Web Host Chat > Web Hosting Chat > Dedicated Servers, VPS and Colocation
Reply
 
LinkBack Thread Tools
Old 4 Weeks Ago   #1 (permalink)
New User (6)
Brand New!
Join Date: Dec 2008
Posts: 6
streetmedia is on a distinguished road
mirror content on 2 vps's

so i've got 2 vps accounts set up. at the moment the dns is a bit of a mess so we're just getting by with ip addresses, but the plan is

• host dns at dnsmadeeasy dns provider

• point to one vps to handle web traffic

• point to second vps if first one unreachable

my question to you - is there software out there that can mirror the content on both servers? ie, changes be made on server1, so they appear on server2 too?
__________________
Registered User
streetmedia is offline   Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
I am Staff at
Secura Hosting Ltd
About My Company!


Certified Host
markcastle's Avatar
Join Date: Aug 2002
Location: London, England
Posts: 3,107
markcastle is on a distinguished road
Rsync?
__________________
••• Mark Castle ••• Secura Hosting Ltd •••
••• Managed Hosting •••
••• AS29452UK Company Reg No: 04330657VAT Number: 789 2703 81Sales: 0845 123 2632 •••
My views are my own and not those of my company.
__________________
Web Host - VIP Member
markcastle is online now   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
I am Staff at
Midnight Software
About My Company!

Certified Host
midnightsoftwar's Avatar
Join Date: Mar 2006
Location: Nr Warrington, UK
Age: 31
Posts: 817
midnightsoftwar is on a distinguished road
It depends on the operating system - if its some flavour of Linux, then yes rsync is your best option. Don't forget MySQL replication too (if you are running it) - thats not as easy as rsync.
__________________
Leigh Jepson
Midnight Software
Tel: 0870 490 0725 - VAT: 896 9527 43
Email: leigh@midnightsoftware.co.uk
__________________
Web Host - Certified Member
midnightsoftwar is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
I am Staff at
UH Hosting Ltd
About My Company!


Certified Host
Join Date: May 2003
Location: UK, Luton
Age: 22
Posts: 1,935
James[UH] is an unknown quantity at this point
rsync really is a clever tool and is certainly one way of doing it.
__________________
James Smith,
UK Web Hosting, Reseller Hosting, Dedicated Servers - All with ultra fast support response times!
Join UH Hosting Ltd's Affiliate Program - Starting at 10% commission

Try our Dedicated Server Configuration Tool

VAT: 828 2971 96 Company Number: 04928706
__________________
Web Host - VIP Member
James[UH] is online now   Reply With Quote
Old 4 Weeks Ago   #5 (permalink)
I am Staff at
UK Webhosting Ltd
About My Company!

Certified Host
Join Date: Feb 2008
Posts: 102
JamesC is on a distinguished road
drbd? obviously depends on how it's virtualised
__________________
James Creese - UK Webhosting Ltd. - 0800 024 2931
http://www.tsohost.co.uk - affordable UK based shared web hosting since 2003
Company reg: 04977925 VAT reg: GB 833 9677 84
__________________
Web Host - Certified Member
JamesC is online now   Reply With Quote
Old 4 Weeks Ago   #6 (permalink)
New User (6)
Brand New!
Join Date: Dec 2008
Posts: 6
streetmedia is on a distinguished road
both machines are centos linux, with mysql databases. one runs on Virtuozzo whm / cpanel, the other with lxadmin (hypervm). i have the option to have whm / cpanel on both at extra cost.

just taking a look at rsync.
__________________
Registered User
streetmedia is offline   Reply With Quote
Old 4 Weeks Ago   #7 (permalink)
Registered User (22)
Going on up...
Join Date: Feb 2004
Posts: 15
stephenM is on a distinguished road
Quote:
Originally Posted by streetmedia View Post
both machines are centos linux, with mysql databases. one runs on Virtuozzo whm / cpanel, the other with lxadmin (hypervm). i have the option to have whm / cpanel on both at extra cost.

just taking a look at rsync.
rsync is very good, but remember you'll always be playing catch-up with changes made to the file system. If you want to be able to switch to your standby VPS and not potentially lose a few minutes/hours (depending on how often rsync runs) of file changes, then you'll need to consider a real-time block replicator like DRBD, although as you might expect this will require assistance from your host to get it set up and certainly isn't a standard requirement, so you'll no doubt be charged appropriately for the host's time and infrastructure changes.

If you're not running a service which absolutely depends upon realtime replication, rsync is a much simpler solution.

The other potential issue is your choice of failover (DNS) - you run the risk of having people caching the old result and then not adopting the new server's IP until their local server chooses to renew the DNS record, which could be hours or days. To guarantee instant failover, you'd need to consider something like VRRP between the two VPSs which will transfer the IP locally. But then you have the problem of the edge router storing the old IP's corresponding MAC address for a while, which will also take you offline. Fun.
__________________
Registered User
stephenM is offline   Reply With Quote
Old 4 Weeks Ago   #8 (permalink)
I am Staff at
Secura Hosting Ltd
About My Company!


Certified Host
markcastle's Avatar
Join Date: Aug 2002
Location: London, England
Posts: 3,107
markcastle is on a distinguished road
Quote:
Originally Posted by stephenM View Post
The other potential issue is your choice of failover (DNS) - you run the risk of having people caching the old result and then not adopting the new server's IP until their local server chooses to renew the DNS record, which could be hours or days. To guarantee instant failover, you'd need to consider something like VRRP between the two VPSs which will transfer the IP locally. But then you have the problem of the edge router storing the old IP's corresponding MAC address for a while, which will also take you offline. Fun.
Indeed, fun fun fun. We've done a lot of load balanced / vrrp based work etc recently, but sometimes it really is better to follow the rules of KISS as overcomplication especially if it's just two VPSs can often be not the way to go. depends on the application, the cost of downtime and shed loads of other factors as i'm sure you know. OP mentioned dnsmadeeasy whom from the look of it say they have a patent pending on some sort of DNS monitoring / dns implementation... probably just a ping monitor and simple zone file change with low TTL. Did a quick search but coudn't find a patent (was interested to see if they'd come up with something really new as we've been using low TTLs for years with huge success for a number of different clients and apps (along with lots of other methods of course).
__________________
••• Mark Castle ••• Secura Hosting Ltd •••
••• Managed Hosting •••
••• AS29452UK Company Reg No: 04330657VAT Number: 789 2703 81Sales: 0845 123 2632 •••
My views are my own and not those of my company.
__________________
Web Host - VIP Member

Last edited by markcastle : 4 Weeks Ago at 12:03 AM. Reason: grammar
markcastle is online now   Reply With Quote
Old 4 Weeks Ago   #9 (permalink)
New User (6)
Brand New!
Join Date: Dec 2008
Posts: 6
streetmedia is on a distinguished road
yeah i really just want to be able to offer my clients that bit extra comfort and be able to say that we have a failsafe in place.

i've been looking at dnsmadeeasy for a while and they get good reviews across the net.
__________________
Registered User
streetmedia is offline   Reply With Quote
Old 4 Weeks Ago   #10 (permalink)
Trusted User (524)
Platinum User
Join Date: Jun 2006
Location: UK
Age: 34
Posts: 515
LeaUK is on a distinguished road
Why not rent a VPS on a cloud? Most clouds have fault tolerance as standard.
__________________
Registered User
LeaUK is offline   Reply With Quote
Old 4 Weeks Ago   #11 (permalink)
New User (6)
Brand New!
Join Date: Dec 2008
Posts: 6
streetmedia is on a distinguished road
VPS cloud? how does that work, i've never heard of it...

are there big providers supplying this? I'm happy with my current vps provider, with a great deal of trust and experience with them over the years. i wanted to try and set up the system myself (/get someone to do it) so i had control over it and wasn't relying solely on a third party.
__________________
Registered User
streetmedia is offline   Reply With Quote
Old 4 Weeks Ago   #12 (permalink)
Trusted User (524)
Platinum User
Join Date: Jun 2006
Location: UK
Age: 34
Posts: 515
LeaUK is on a distinguished road
There are a few of VPS/cloud providers here. Basically it would be a VM on redundant hardware, although if the DC goes down then you're stuck. Doing everything yourself takes much time (I've been doing mine for 12 months on/off) and isn't for the non-techy. Perhaps your current VPS provider can provide failover already? Have you checked?

Lea
__________________
Registered User
LeaUK is offline   Reply With Quote
Old 4 Weeks Ago   #13 (permalink)
New User (6)
Brand New!
Join Date: Dec 2008
Posts: 6
streetmedia is on a distinguished road
ok, so after looking into all this - it seems like mirroring such a small operation is going to be inefficient compared to the amount of effort it will take.

a few folk have advised me of cloud hosting.

thing is, im happy with my WHM setup - i've been using it for years and i wish to remain with it. i thought it would be easy to set it up so it was running on two servers but apparently not...



what do you think about this:

i'm now thinking about running my vps with my main company, and setting up a static site for each of my clients websites (im a web designer) so when the first one isn;t reachable (short ttl) the static site will appear.

would i be able to acheive this using "NO CACHE" on my web pages so the pages hit fresh every time?

will the ttl method at dnsmadeeasy work ok for this idea?



i'd like to take this opportunity to thank everyone for their time in answering my queries. i really appreciate it.
__________________
Registered User
streetmedia is offline   Reply With Quote
Old 4 Weeks Ago   #14 (permalink)
othellotech's Avatar
Join Date: Mar 2002
Location: London, United Kingdom
Age: 38
Posts: 4,389
othellotech is on a distinguished road
as most connectivity providers ignore ttl's, you's simply bebetter off with a 2nd vps from the same supplier, which you backup the sites to, and restore/change ip's on in the event of the first system going down
__________________
Rob Golding, Othello Technology Systems Ltd AS29527 Company#03894981 VAT#GB-782561410. T:0871 277 6875 F:0871 277 6875
domains email forwarding resellers ecommerce colocation rackspace ip transit secondary mx/dns datacentre ih online/offsite backup
* OthelloHosts.net CPanel/WHM, H-Sphere, Plesk, Ensim, DirectAdmin High-Availability Professional Email / Web Hosting
* OthelloVPS.net Managed Xen4 Enterprise Virtual Private Servers and Dedicated Servers
# Currently buying 123-reg, ukreg, heart-internet and enom domain resellers - www.hostacquisitions.co.uk
__________________
Web Host - VIP Member
othellotech is offline   Reply With Quote
Old 4 Weeks Ago   #15 (permalink)
New User (6)
Brand New!
Join Date: Dec 2008
Posts: 6
streetmedia is on a distinguished road
wouldn't i need to take a third party dns service then? at the moment i've only got 1 vps box which handles everything. if it goes im screwed?
__________________
Registered User
streetmedia is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[UK] ValueVPS.co.uk - VPS's from £4.99/month Starteck2002 Web Hosting and Related Offers 4 23rd November 2008 10:52 PM
US & UK Managed/Unmanaged VPS's from $22.95/£22.95 per mo Cranky Web Hosting and Related Offers 0 20th February 2007 04:04 AM
Mirror a drive via usb2 or fire wire javan_singh Business and Technical Advice 7 18th February 2006 09:36 PM
PoundHost Internet launches new UK Mirror Service Maff Hosting and Tech News 17 15th February 2006 09:44 PM


Some great companies!


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0