1. 程式人生 > >Use Route 53 Health Checks for DNS Failover

Use Route 53 Health Checks for DNS Failover

Active-passive failover

Active-passive DNS failover is the simplest method that uses one primary and one secondary resource.

Note: Make sure to create a Route 53 health check for your primary resource before proceeding.

  1. Enter a Name for your resource (such as resource.example.com
    ).
    Note: Use the same name for both resources.
  2. For Type select A – IPv4 address.
  3. For Alias choose Yes. For Alias Target enter the DNS name of your primary resource. The Alias Hosted Zone ID then appears.
  4. For Routing Policy select Failover.
    For your primary record choose Primary
    for Failover Record Type. Enter a unique name (such as elb-Primary) for Set ID.
    For your secondary record choose Secondary for Failover Record Type. Enter a unique name (such as elb-Secondary) for Set ID.
  5. For Evaluate Target Health choose Yes for your primary record and choose No for your secondary record.
  6. For your primary record choose Yes for Associate with Health Check. Then for Health Check to Associate select the health check that you created for your primary resource.
  7. Choose Create to create your record.

The records now point the domain to your primary resource or fail over to your secondary resource.

Active-active failover

Active-active DNS failover returns multiple resources to DNS queries. When one resource is unhealthy, Route 53 fails over to another resource.

Note: Make sure to create a Route 53 health check for both resources before proceeding.

  1. Enter a Name for your resource (such as resource.example.com).
    Note: Make sure to use the same Name for each record.
  2. Select a record Type (such as A – IPv4 address).
    Note: All the resources' records must be the same Type.
  3. For Alias choose Yes. For Alias Target enter the DNS name of your resource. The Alias Hosted Zone ID then appears.
  4. Select a Routing Policy and enter the appropriate values for that policy (such as Weight for a Weighted policy). For Set ID enter a unique name for this resource (such as Resource 1).
    Note: For a weighted routing policy, you can set all records to an equal weight (such as 10) different weights (such as 20 and 10, where the 20 record receives twice as much traffic).
  5. For Evaluate Target Health choose Yes.
  6. For Associate with Health Check choose Yes. For Health Check to Associate select the health check that you created for this resource.
  7. Choose Create to create your record.

Combination failover

You can also combine multiple routing policies and health checks to create complex failover mechanisms where Route 53 traverses multiple tiers of records before returning the appropriate record.

For example, if you have three endpoints, you might want to load balance traffic between the first two (Endpoints A and B) and fall back to the third (Endpoint C) when the first two fail health checks. In this configuration, you have two routing tiers. In the lower routing tier, Route 53 uses record health checks to confirm Endpoints A and B are healthy, then route traffic equally between both primary resources. If Endpoints A and B fail health checks, traffic fails over to the higher routing tier. In the higher routing tier, Route 53 routes traffic to Endpoint C, a secondary fallback resource (such as an S3 bucket with an error page). You can create this configuration as follows:

  1. Create Route 53 health checks for all three endpoints to associate them to health check records.
  2. For the lower routing tier, create two weighted records with equal weights for the domain name (such as resource.example.com) for Endpoint A and Endpoint B.
    Important: Make sure to associate the health checks for Endpoint A and Endpoint B with their weighted records. This step makes Route 53 determine the health check status of each record and load balance traffic between them accordingly.
  3. For the higher routing tier, create failover records for the domain name (such as domain.example.com) for Endpoint C.
    Important: Make sure the primary record is an alias record that points to the record for resource.example.com that you created in step 2.
    Important: Make sure the secondary record points to Endpoint C as the failover resource.
  4. Configure Route 53 to determine the health status of the primary failover record. You can either create a custom health check to determine the health status of the two weighted records (for example, calculated health checks) or use the record option to Evaluate Target Health.

This failover configuration works as follows:

  1. The client requests domain.example.com
  2. If the primary record passes health checks, Route 53 sends traffic to the load balanced primary resource records of resource.example.com which points the client to Endpoint A or Endpoint B.
  3. If the primary record fails health checks (Endpoint A and B are failing health checks), Route 53 marks the primary record as unhealthy and fails over to the secondary record. Route 53 then sends the client request to Endpoint C (the fallback resource).
  4. When the primary record passes health checks again, Route 53 fails back to the primary resource records (Endpoints A and B) automatically.

相關推薦

Use Route 53 Health Checks for DNS Failover

Active-passive failover Active-passive DNS failover is the simplest method that uses one primary and one secondary resource.

Troubleshoot Access Issues for Websites that Use Route 53 DNS Services

Check the website's public hosted zone resource records sets Important: At a minimum, the public hosted zone must contai

Configure, Update, and Verify Health Checks for Classic Load Balancers

Elastic Load Balancing health checks automatically connect to backend instances to make sure they're reachable by your load balancer. You can u

Amazon Route 53雲域名系統(DNS)開發人員資源

Amazon Web Services 誠聘精英。 Amazon Web Services (AWS) 是 Amazon.com 的一個充滿活力、不斷壯大的業務部門。我們現誠聘軟體開發工程師、產品經理、客戶經理、解決方案架構師、支援工程師、系統工程師以及設計師等人才。請訪問我

Amazon Route 53雲域名系統(DNS)價格_DNS解析

對於未滿一個月的部分,上述執行狀況檢查月度價格按比例收取。 需要執行超過 200 次執行狀況檢查?請聯絡我們。 * 對於新客戶及現有客戶,其 AWS 賬戶中的(或與其賬戶關聯的)可免費享受執行狀況檢查的 AWS 終端節點(如下所述)數目最多可

Configure DNS for Route 53

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Create a Subdomain for a Domain Hosted Through Route 53

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Route 53 Reverse DNS

If you use non-AWS resources, your IP addresses might belong to a third party, such as another cloud computing platform or your internet servic

하이브리드 환경을 위한 Amazon Route 53 DNS Resolver 신규 기능

제가 AWS 고객으로서 처음 Virtual Private Cloud(VPC)를 생성했을 때의 감동을 잊을 수가 없습니다. 비슷한 데이터 센터 내 환경을 구축하느라 몇 개월을 보내고, 진짜 복잡한 설정 방식에 힘들어 하고 있을 때였습니다. VPC가 제공하는 즉각적

Управляемый облачный сервис DNS – Система доменных имен – Amazon Route 53 

Система DNS в Интернете напоминает телефонную книгу – она также управляет соответствиями между именами и цифрами. Если говорить про сервис DNS,

Amazon Route 53 雲域名系統(DNS服務)_DNS解析

Internet 上的 DNS 系統與電話簿非常相似,它管理著名稱和數字之間的對映關係。在 DNS 中,名稱就是方便使用者記憶的域名 (www.example.com)。但是,DNS 中的名稱不是對映到電話號碼,而是對映到 IP 地址 (192.0.2.1),它指定了計算機在 Inte

Ask HN: Should I use Cloudflare for DNS?

What are the pros/cons of choosing Cloudflare for DNS over say, Google Domain's built-in DNS or Route 53? We intend to host in AWS but the domain is regist

Use the following method printPrimes() for questions a-f below

int 技術分享 case code nes ati http conn design Use the following method printPrimes() for questions a-f below Code /************************

【nginx+lua】dynamic update upstream, health checks

Nginx + Lua 實現動態更新後端節點,主動監控檢測方案:1、nginx + upsync 模組https://github.com/weibocom/nginx-upsync-modulehttps://github.com/xiaokai-wang/nginx-stream-upsync-modul

ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

對ORACLE資料庫虛擬機器進行了克隆操作,克隆是沒有關閉資料庫,克隆結束啟用資料庫時報錯無法啟動。 原因: 資料庫異常停止,停止的時候還沒有來得及將快取區中的LOG歸檔,就被強制SHUTDOWN了

Ask HN: Would you use a predictive health assistant?

I’ve been hearing about a lot of innovation in health tech and am shocked that nobody has built a simple dashboard that allows me to see analytics on vario

Why to Use CSS Instead of JavaScript for Your Menus

Why to Use CSS Instead of JavaScript for Your MenusBefore I start on this post, if you haven’t read my post, Good Tech Things to Know, I recommend you read

【我的Android進階之旅】修復錯誤:Use of generics not allowed for java type at 'com.fasterxml.jackson.databind’

一、問題描述 剛把app專案的compileSdkVer 改為 28,buildToolsVer改為"28.0.3"之後,編譯失敗了,失敗錯誤如下所示: Warning: Exception while processing task java.io.IOException

Ask HN: Why did Microsoft not use HTML as the format for its word documents?

Is there any critical functional difference between doc vs. HTML format for storing documents? Seems like in 2018, if a new Word processor were to be made,