+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 15 of 22

Thread: mirror content on 2 vps's

  1. #1

    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?

  2. #2
    Certified VIP Host
    I have made 3937 posts
    313 posts within 6 months
    Contact Me, Company profile
    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.

  3. #3
    Certified VIP Host
    I have made 1340 posts
    106 posts within 6 months
    Contact Me, Company profile
    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 (soon to be Serviture Ltd)
    Tel: 01925 320022 - VAT: 896 9527 43
    Email: leigh@midnightsoftware.co.uk

  4. #4
    UH Hosting Ltd
    no reviews yet. Post Review
    Certified VIP Host
    I have made 2424 posts
    128 posts within 6 months
    Contact Me, Company profile
    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!
    Change is coming to you all - We're re-branding to Prime Hosting later this year

    Try our Dedicated Server Configuration Tool
    VAT: 828 2971 96 Company Number: 04928706
    Please be my friend!

  5. #5
    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

  6. #6
    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.

  7. #7
    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.

  8. #8
    Certified VIP Host
    I have made 3937 posts
    313 posts within 6 months
    Contact Me, Company profile
    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.
    Last edited by markcastle; 6th December 2008 at 12:03 AM. Reason: grammar

  9. #9
    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.

  10. #10
    Why not rent a VPS on a cloud? Most clouds have fault tolerance as standard.

  11. #11
    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.

  12. #12
    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

  13. #13
    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.

  14. #14
    Certified VIP Host
    I have made 6419 posts
    544 posts within 6 months
    Contact Me, Company profile
    othelloRob 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 Tel:0871 277 6875
    consultancy domains email forwarding resellers ecommerce colo rackspace ip transit secondary mx/dns dedicated servers backup/DR
    * OthelloHosts.net Linux and Windows Clustered High-Availability Professional Email / Web / Secure Hosting
    * OthelloVPS.net Managed Xen Enterprise Virtual Private Servers and Dedicated Servers
    # Currently buying web hosts and domain resellers - www.hostacquisitions.co.uk

  15. #15
    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?

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.0 RC2