We already created a EC2 server setup and configured and uses simple routing policy. We deleted those A records. We will create one with latency policy now. This policy allows you to route based on lowest latency for end user (e.g. which region will give fastest response time).
Steps:
-
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.
-
Click on create record set.
-
Leave the name as blank to denote naked domain name.
-
Select the record type as A – Ipv4 Address
-
Click yes for Alias (as we are configuring for a naked domain name).
-
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.
-
Select the routing policy as Latency
-
Select the region and give an id (region can be easily found from the ELB name we have previously selected.)
-
Create another A record for the far away region ELB following same steps from step 4. This time remember to select appropriate region for the other ELB.
-
Try running the domain url in the browser. You may also use a vpn to login to your far away region and may try running the domain url again.
-
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.
- heartin's blog
- Log in or register to post comments
Recent comments