![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||||||||||
|
|||||||||||
|
Alternate Hosting
I have a client that is looking for a means of insuring that their website never goes down. Is there a way to setup hosting with an alternate provider and then, if the primary host has an issue, have the web traffic routed to the alternate host until the primary host is back online?
Any suggestions are appreciated. |
|
#2
|
|||||||||||
|
|||||||||||
|
I do this with some customers. I use an external DNS service that includes failover service (zoneedit). This creates an A register with a 60 second TTL.
Customer has to maintain their content replicated in both servers. Vt server is the main one, if the http service fails, the failover service detect it and automatically redirects traffic to the backup account. The failover service checks service availabilty every 5 minutes. So in the worst case the service will be unavailable 5 or 10 minutes. And the best is you have to do nothing, everything is automatic. |
|
#3
|
||||||||||||
|
||||||||||||
|
Then you gotta keep 2 copies of your databases too? And updated in real time? Isn't that very difficult to set up?
|
|
#4
|
|||||||||||
|
|||||||||||
|
No, the backup server connects to the same database server at VT.
|
|
#5
|
|||||||||||
|
|||||||||||
|
Just a heads up, Vortech have to my knowledge in the past blocked the IP of connections that they believed were running a website remotely from one of their database servers like that becuase the higher latency connections can cause some issues.
|
|
#6
|
||||||||||||
|
||||||||||||
|
Quote:
"We allow databases to be used remotely. However, if you have a completely DB-driven website that requires its own web server, it probably needs its own database server as well. I wouldn't recommend putting it on a shared MS SQL server." And re: "No, the backup server connects to the same database server at VT." - then what's the use of keeping a duplicate server? If Vortech goes down, then most likely everything goes down at Vortech. So your site won't work without the db. You would need to keep a dulicate db also at the new server to keep it always-on.
__________________
Always keep an extra credit card processing account ready to take orders as a backup, just in case (speaking from experience). I use: 2checkout.com It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. |
|
#7
|
|||||||||||
|
|||||||||||
|
Quote:
|
|
#8
|
|||||||||||
|
|||||||||||
|
Quote:
|
|
#9
|
||||||||||||
|
||||||||||||
|
I was not planning on using a remote MSSQL server as a backup, but as the main db for the site hosted elsewhere. I could test it, and if the speed isn't that different, then what's wrong in it? It surely wouldn't be a site as popular as Google. Perhaps getting max. 2k to 5k visitors max per day.
skehrer, what solution did you decide to go for eventually? |
|
#10
|
|||||||||||
|
|||||||||||
|
Once the latency to the database gets up above what it would be normally in an internal network (<1ms internal, maybe 40ms-60ms external) it just bogs things down a bit especially if many people start doing it.
And of course the latency between your web and database servers should be factored in as being ontop of the latency between your users and your webservers so the site will no doubt be a little slower. Personally, why don't you just install SQL2005 on your webserver and run it from the same box? then you can use local pipes to connect to the DB as well which will be nice and quick. |
|
#11
|
||||||||||||
|
||||||||||||
|
Quote:
Because in our db connection strings, we are asked to put the address of the sql server as mssqlxx.servicedomain.com, instead of just mssqlxxx. That means the webserver doesn't know it's a local server, it's making a long trip thru the internet to Vortech's mssql server - just as it would when you specify any other host's sql server name such as mssql.hostedanywhere.com. Of course, that's my non-technical opinion. I don't know if that really happens. MSSQL server on my own ded. box for a single site is too costly -- most ded. hosts charge $140 pm for their webserver + $250 pm for putting MSSQL server on the same box, when the site's db itself is just 150-250 MB max. So it's a whole lot of money for a small db of one site. And isn't it always advised to keep your webserver and mssql server boxes separate, as Vortech has done here? |
|
#12
|
|||||||||||
|
|||||||||||
|
Quote:
Actually that's not the case, routing isn't based on the canonical name, it's based on the IP address (or more correctly switched based on the MAC address), the primary reason your asked to use a FQDN in your connection strings is so that if Vortech do another IP rejig like last done in 3Q 2005 then your site will continue working without having to change anything becuase DNS will take care of resolving it for you. Sure you still have a DNS lookup to resolve it, but even that here at Vortech would be <1ms where as doing it from externally unless you put the Vortech DB Server in your local hosts file, you'r also going to have to make a trip to Vortech DNS to resolve it, and again your trip will be longer. Requests from Vortech websites to vortech databases servers do not go outside the network becuase they're on the same network and the switches and routers know this. In virtually all instances I've tested there has been no more than 1 hop to reach the box hence latency <1ms For example here is a traceroute from one of the webservers to MSSQL12 (you can do this yourself just using the Reverse Tracert function in the Control Panel) traceroute to mssql12.hsphere.cc (216.157.145.72), 30 hops max, 38 byte packets 1 mssql12 (216.157.145.72) 0.781 ms 0.442 ms 0.492 ms Now traceroute from your own dedicated server to mssql12 and see the difference. You can pick up your own SQL2000 licenses pretty cheap from places like eBay or other license resellers certainly much cheaper than $140/pm would work our for the total cost of ownership over a short period of time by buying it second hand, alternatively there's the workgroup edition too which can be used for a single database from memory. But do look into SQL2005 Express which is what I recommended above. Quote:
Running them on the same box when you have heavy web traffic and heavy database traffic isn't a good idea, but it doesn't sound to me like that's neccessarilly your situation here, you can tune SQL to use a fixed amount of memory (though when running on a box with IIS they'll tend to use around half available each which is a good compromise anyway) .. many people start off this way until they reach critical mass and need to have multiple boxes. Last edited by Brangwyn : 07-15-2007 at 09:03 PM. |
|
#13
|
||||||||||||
|
||||||||||||
|
Thanks... that's extremely useful info!
|
|
#14
|
|||||||||||
|
|||||||||||
|
You're welcome
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|