1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Hosting a site on 2 servers

Discussion in 'Web Hosting' started by smartgirl, Nov 9, 2006.

  1. #1
    Lately i have all kinds of problems with my hosting (server down, mysql not working,etc) .I was wondering if i could have 2 servers where i can host my sites and setup DNS so that when a server is down the other could take over .Can this be done ?
    Thanks for your help, guys :)
     
    smartgirl, Nov 9, 2006 IP
  2. cellularnews

    cellularnews Peon

    Messages:
    246
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    co-locating is certainly possible - although that might be overkill as a solution.

    The key thing is to find out "why" the server is crashing.

    Is the site traffic too much for the server to cope with?

    Can you upgrade the server?

    Is the server set up badly and just needs optimising?

    Would a load-ballanced server be a solution?
     
    cellularnews, Nov 9, 2006 IP
  3. amnezia

    amnezia Peon

    Messages:
    990
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Unless you have a huge amount of traffic then i don't think its worth it.
     
    amnezia, Nov 9, 2006 IP
  4. varunkrish

    varunkrish Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if the server is going down due to too many mysql connections.. try optimizing your queries
     
    varunkrish, Nov 9, 2006 IP
  5. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #5
    You can setup resync using load balancing servers do a search here or checkout Shawn blog i think he posted somewhere
    Saad
     
    saadahmed007, Nov 9, 2006 IP
  6. smartgirl

    smartgirl Peon

    Messages:
    513
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I dont have a huge amount of traffic ; i seek a solution for a small/medium site. I was wondering if having 2 separate hosting accounts on 2 different servers and setting one as main and the other as secondary on domain CP is possible.
     
    smartgirl, Nov 9, 2006 IP
  7. reteep

    reteep Active Member

    Messages:
    181
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #7
    What you need is a loadbalancer, ask your host for a specific offer.
     
    reteep, Nov 9, 2006 IP
  8. smartgirl

    smartgirl Peon

    Messages:
    513
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thank you all :)
     
    smartgirl, Nov 9, 2006 IP
  9. cellularnews

    cellularnews Peon

    Messages:
    246
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Define "huge amount of traffic".

    Frankly, if the site is small and the server is crashing - then either the website design is seriously flawed, or there is a problem with the server (either config or capacity).

    Are you using a dedicated server - or shared?
     
    cellularnews, Nov 9, 2006 IP
  10. smartgirl

    smartgirl Peon

    Messages:
    513
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    cellularnews, my traffic is no more than 10,000 uniques/month and i have a reseller account on a shared server.A week ago i changed my hosting company and in a week i already had 2 downtimes with the new hosting , lasting more than 10 hours each.
     
    smartgirl, Nov 9, 2006 IP
  11. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #11
    The best solution if you are having trouble with your hosting service would be to change to a better hosting network and have their nameserver as your primary DNS and if you need to have a second hosting service then place their nameserver in the secondary DNS server.
    If the hosting is down for the primary the browser will send a request to the secondary server.. I read this somewhere a long time back.

    The best answer maybe provided by Shawn or any other webmaster handling huge websites in this matter
     
    max pain, Nov 9, 2006 IP
  12. smartgirl

    smartgirl Peon

    Messages:
    513
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #12
    That is exactly what i am looking for, i will look into this matter.If any of you guys have applied this solution with success,please, let me know.
     
    smartgirl, Nov 9, 2006 IP
  13. TuesZ

    TuesZ Well-Known Member

    Messages:
    928
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    163
    #13
    Round-robin DNS - There's some good information on the net about this
     
    TuesZ, Nov 9, 2006 IP
  14. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #14
    what the OP actually wants to do is to utilize two different hosting companies - so if 1 of them is down - the users are automatically redirected to the other one.
     
    max pain, Nov 9, 2006 IP
  15. cellularnews

    cellularnews Peon

    Messages:
    246
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #15
    10,000 uniques per month wouldn't crash a Sinclair Spectrum - let alone a modern webserver.

    For the cost of two hosting accounts, you should switch to a decent single host - and if possible a dedicated server.

    I am sure there are lots of recomendations for reliable hosting available, as it sounds like you are just unlucky at the moment.

    I repeat - for 10,000 unique sessions per month you should not need a dual server platform.

    I serve hundreds of thousands of uniques from a single dedicated server that happily maintains a 99.9% uptime.
     
    cellularnews, Nov 9, 2006 IP