Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Failsafe setup with two webservers

  • 19-05-2006 8:28am
    #1
    Registered Users, Registered Users 2 Posts: 378 ✭✭


    I have two webservers in a hosting centre bothon the same subnet. At the moment I am using a standard router to connect both together and if the main box goes down I change the backup to be the live manually.

    Can anyone suggest to me a solution to automate this without much cost... I want to go down the hardware route rather than rely on software.

    Any point in the right direction will be a great help...


Comments

  • Banned (with Prison Access) Posts: 25,234 ✭✭✭✭Sponge Bob


    routers can load balance in primary / secondary pairs so that

    www.yoursite.com goes to primary if up and www.yoursite.com goes to secondary if primary is down (no port 80 for example is pretty clear innit )

    cisco have special boxes / protocols to do this, its called content switching and you need content switching and failover together

    http://www.cisco.com/en/US/products/hw/modules/ps2706/ps780/index.html

    routers like these are shag all use IF the web server has locked up though nor can an external check be done to test and order a failover off the router that I know of. eg web server locked and useless but port 80 up anyway.

    Maybe a traffic related rule in addition would cause the failover to work as in traffic in and no traffic out means port 80 up but server obviously borked as it responds not so execute a fail over in this instance.

    HTH


  • Registered Users, Registered Users 2 Posts: 1,664 ✭✭✭rogue-entity


    You can also do load balancing with DNS by impliamenting a SRV record in the zone file for your domain. [http://www.zytrax.com/books/dns/ch8/srv.html]

    Example:
    ; Make Primary handle all requests unless its busy or unavailable.
    _http._tcp SRV 1 0 80 www.yoursite.com
                   SRV 0 0 80 www2.yoursite.com
    
    www            A 1.2.3.5
    www2           A 1.2.3.4
    


Advertisement