[Lab] Working with Route 53 Part 2 - Weighted Routing Policy

We already created a EC2 server setup and configured and uses simple routing policy. We deleted the A record that specified simple routing. We will create one with weighted policy now. In this policy, requests for your domain that come to Route 53 will be forwarded to different regions or even different ELBs based on weight specified.

 

Steps:

  1.  Go back to Route 53 and inside the hosted zone for our domain. Click on the domain to see current records. NS and SOA records should be already created as default.

  2. Click on create record set.

  3. Leave the name as blank to denote naked domain name.

  4. Select the record type as A – Ipv4 Address

  5. Click yes for Alias (as we are configuring for a naked domain name).

  6. Click inside Alias target and select the ELB that is in the closer region. Remember that we have two ELBs, one in closer region and one in faster region.

  7. Select the routing policy as Weighted.

  8. Set the weight as 75 and give a name to denote it is pointing to the ELB in our closer region.

  9. Hit Create. Now since there is only one weighted policy that sums to 75, all traffic will go to same region.

  10. Create another weighted policy for the ELB that is in far region and give a weight of 25. Try refreshing the domain in a browser to see the distribution. Because of local caching by ISPs you might not see the exact distribution as you might expect in your local testing. But amazon will take care of the percentage globally.

  11. Delete the A records that we just created. You do not have to cleanup everything yet, as we will be doing further labs in continuation.

 

Exam Tips

  1. Weights in weighted policy can be any numbers (1 and 2, or 75 and 25 etc.). It is the sum and percentage of each in that sum that matters.

Learn Serverless from Serverless Programming Cookbook

Contact

Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About

CloudMaterials is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Microsoft Azure and Amazon Web Services (AWS).

I like to write and I try to document what I learn to share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream