Стратегия восстановления после сбоя в Интернете при хостинге услуг со

301
user190084

Учитывая, что у вас есть две сети со статическими ips:

сеть A.) 66.xxx.xxx.9 (для доступа к этой сетевой записи DNS используется myservice.mydomain.com)

а также

сеть B.) 66.xxx.xxx.29 ((для доступа к этой сетевой записи DNS используется myservice.backupmydomain.com))

Первая сеть, которую вы обычно используете, а вторая сеть является резервной.

У вас есть служба, размещенная на компьютере в сети.

Когда сеть A выходит из строя, маршрутизатор переключается на сеть B. Но вам все равно нужен какой-то способ пересылки запросов из внешнего мира от A к B. В противном случае клиент за пределами сети постучится в дверь и обнаружит, что A не работает.

Как автоматически пересылать данные в сеть B, когда сеть A не работает, если вы отправляете пакеты извне? По сути, я хотел бы сделать две вещи, когда сеть А не работает. 1.) Переключитесь на сеть B. 2.) Скажите всем пакетам, идущим в сеть A, вместо этого перейти в сеть B.

0

2 ответа на вопрос

0
Jim G.

There are a few workarounds, but none of them are automatic/seamless. The easiest is to change the DNS entry when one of the networks is down. Some DNS providers offer "health checks" that can automate this for you, but there will still be downtime while the new DNS records propagate.

If you go this route, keep the TTL on your DNS entries as short as reasonably possible.

Another alternative would be to use a load balancer in the cloud. DNS would point here, and the load balancers would send traffic to the appropriate servers dynamically as they went down/up. The LB is the new single point of failure, but if designed properly, this can work pretty well.

Обновление DNS - единственное решение, о котором я мог подумать, и оно не очень удачное. Как вы думаете, у интернет-провайдеров есть что-то для этого? Я не спросил их. Возможно, вы можете дать им резервный IP-адрес для пересылки на их конце? user190084 9 лет назад 0
Amazon, Route53, DNSMadeEasy и OpenDNS - это три DNS-провайдера, которые предлагают что-то, как я описал выше, и, вероятно, есть много других. Вы можете спросить своего провайдера, но, скорее всего, они не смогут сделать то, что нужно. Jim G. 9 лет назад 0
Кроме того, в вашем втором сценарии, что происходит, если место назначения балансировщика нагрузки не работает? user190084 9 лет назад 0
Тогда все вниз. Вот почему важно правильно настроить балансировщик нагрузки. Думайте в духе AWS ELB. Вы не можете легко построить это самостоятельно без больших усилий. По сути, Amazon (или любой другой поставщик услуг) выполнил для вас часть тяжелой работы. Jim G. 9 лет назад 0
http://www.dnsmadeeasy.com/services/dns-failover-system-monitoring/ user190084 9 лет назад 0
-1
McSplodus

On the inside of your network, for outbound traffic, you could run a FHRP* between your two routers. This will require you to reip device(s), as hosts will have a new default gateway. You would create or reuse a VIP [virtual ip] and assign that to the inside of both routers.

However, the protocols will, either by configuration or default settings, automatically forward traffic based on a configurable 'criteria'. Generally you're tracking connectivity to a layer 3 address (like your WAN default gateway), you'd want to consult the documentation and feature set of your routers.

The general idea is, when your FHRP, of choice, detects the internet down, it allows your 'standby' router (or active if this is needed) to begin responding to the virtual MAC ARP requests and it begins forwarding traffic with the same VIP shared by the primary router as its source. Again, protocol dependent, but some can use 'preempt' which will overthrow and revert back to the primary network once the fail condition is corrected. Some give more granular settings that can really fine tune to most specs.

Additionally, based on your traffic patterns and flow, you could load share, or session balance, between both circuits for outbound traffic. This has the benefit of ~100% outbound across two circuits (~50/~50 share) - instead of 100% across a single circuit. This is asymmetric routing, and sometimes isn't desired. It all really depends on your objectives and layout. An example of this is packets going outbound from your backup circuit, received by the client, but the replies go to your primary DNS. Out one router, in another. This could be a problem, or it could be the solution to the problem.

This doesn't take care of your secondary requirement for DNS, but it does provide the internal redundancy.

  • First Hop Redundancy Protocol (VRRP/GLBP/HSRP/CARP/NSRP etc.)
Спасибо за понимание. Кажется, есть отличные решения для исходящих. Но для входящего DNS это основной пункт для пересылки во вторичную резервную сеть. user190084 9 лет назад 0

Похожие вопросы