Clustering 3 Dedicated Server - Nameserver Config

Discussion in 'Site & Server Administration' started by RapidFire, May 15, 2009.

  1. #1
    Hey,

    I have 2 dedicated server, and I will be expecting heavy load on certain times, and I need the second server to kick in like www2.website.com whenever my first one goes down.

    I need this also because I was experiencing a lot of ddos attacks.

    Can someone teach me or show me a website that I can read up? I have search on google but could not find anything...:(
     
    RapidFire, May 15, 2009 IP
  2. eFishy

    eFishy Guest

    Messages:
    213
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Instead of doing what your looking for....
    Why not get a single more powerful deidcated server and get DDOS protection.
    Would be alot easier to setup and cheaper.
     
    eFishy, May 16, 2009 IP
  3. xsimio

    xsimio Greenhorn

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    actually i think U need apache load balancing..

    create an apache cluster.
     
    xsimio, May 17, 2009 IP
  4. ashagg

    ashagg Well-Known Member

    Messages:
    366
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    105
    #4
    A simple and effective way to distribute your loads across servers is Round Robin DNS. Google it up.. it's pretty simple and works pretty alright. You will however need to come up with a script or some to sync your SQL's and files between servers though..

    Shoot me a PM if you'd be willing to pay a small amount for such a setup ..
     
    ashagg, May 20, 2009 IP
  5. RapidFire

    RapidFire Peon

    Messages:
    213
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can anyone teach me or guide me though this. I will be more then happy to pay them.
     
    RapidFire, May 22, 2009 IP
  6. Gr33n3gg

    Gr33n3gg Well-Known Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #6
    Gr33n3gg, May 24, 2009 IP
  7. Melvinng

    Melvinng Peon

    Messages:
    850
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I can pay someone to teach me if possible.
     
    Melvinng, Jun 17, 2009 IP
  8. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #8
    A Round Robin is very easy to setup. Just go where you have your A records, stored.
    and add for example.

    example.com. IN A xx.xx.xx.xx
    example.com. IN A xx.xx.xx.xx

    When someone visits your site the DNS lookup will serve either one but not both. however round robin is not smart it won't know if one is overload or is offline. Buts its fuctional for being pretty easy to setup.
    But you will have to as mentioned before syn your SQL if you using it. That would an entirely different task.
    Lastly, you could also use a Static content url like static.example.com to serve all your Static images and Javascript etc. and Host those on a different server so in your A record you would put

    static. IN A xx.xx.xx.xx

    That would take the load off the server for serving your static content and place the load on the 2nd server. If you ever noticed every single big site out there does this, for good reason. When someone requests an image its also send useless cookie data along with it which the server has no use for to serve images. IF you look at Youtube, they serve their images from ytimg.com , Yahoo.com use yimg.com , Myspace.com uses myspacecnd.com, Facebook uses fbcnd.net.. So you can see if their doing it, its for good reason. I think This forum itself could use some optmization. If the owner just loaded the images on the forum from a 2nd server on a static url it probably would improve performance alot. And maby snyc up a few server in round robin.
     
    Dollar, Jun 17, 2009 IP
  9. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #9
    Hi,

    We can set the round robin load balancing for you.
    if you are interested , please let us know and we can help you out.
     
    maestria, Jun 18, 2009 IP