A
A
Artyom Peshkov2012-03-25 22:13:59
High availability
Artyom Peshkov, 2012-03-25 22:13:59

Site fault tolerance (server crash) - how?

Hello, friends!

In short, the situation: there is a small startup site A, on server A. The server periodically crashes. It seems that it doesn’t happen to anyone, but these falls are very critical - clients leave (because a startup tied to client sites and our stuff stops working at that time).

The question is what to do?
If on another hosting (server B) you constantly duplicate the code and database from server A, then HOW do you instantly switch traffic to B when A crashes? Or what other way to level the server crash?

- I encounter the issue of the need for 100% work for the first time, before projects were not so critical, I would be very grateful for links or mana, articles and personal experience. Thank you!

Answer the question

In order to leave comments, you need to log in

9 answer(s)
V
Vlad Zhivotnev, 2012-03-25
@inkvizitor68sl

The adult world solves these problems with BGP and advertising one IP from two points at once. Accordingly, when one of the points falls, announcements stop coming from there.

S
shsweb, 2012-03-26
@shsweb

Maybe there is an opportunity on the client site to choose which of your servers is alive and knock there?

S
Silver_Clash, 2012-03-25
@Silver_Clash

Search by word balancer.

S
Sergey, 2012-03-25
Protko @Fesor

In your case, the easiest way would be to really take another server, duplicate everything, and then make a load balancer on the third server. It is also possible to set the balancer at the level of DNS servers. I met DSN hosting where such an opportunity exists. Then, on one domain, requests will be sent to different IP addresses of servers. This option is very convenient and fast to implement. For example , Amazon provides similar services.

Z
z0rc, 2012-03-25
@z0rc

Another option is to consider caching the site through Akamai or CloudFrount. As long as the TTL cache has not expired, the site will be available even when the server is down. As a bonus, you will get a noticeable load reduction.

C
charon, 2012-03-26
@charon

and there is also an option - to change the hoster :) It is clear that this is in addition to everything else, but the behavior you described "force majeure happens all the time: either the electricity is turned off in the DC, then the admin pulled the cord with his foot, then the fire" is some kind of childish garden, you can't do business with them.

M
michs, 2012-03-26
@michs

It's all well spelled out.
habrahabr.ru/post/104621/

A
Artyom Peshkov, 2012-03-25
@Gorky

In general, the sides where you need to look, now at least in general I understand. I will dig further myself. And to everyone who helped - thanks and karma friends! =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question