Working with the weighted routing policy
The weighted routing policy can be applied when there are multiple resources that perform the same function, for example, web servers serving the same site from different web servers. Weighted resource record sets let you associate multiple resources with a single DNS name.
Common use cases of the weighted routing policy are as follows:
- Load Balancing
- A/B Testing
How to do it...
- Log in to the AWS console, go to
Route 53
, then click onHosted zones
and select your hosted zone.

Hosted Zone console
- Click on
Create Record Set
. - Create the first record set, provide the record details, and
Name
astest.internaltest.com
.

Provide Primary Record Details
- Select
Routing Policy
asWeighted
, enterWeight
as1
, enter a short unique description, andSet ID
ast2 instance
.
Note
This will be your unique identifier between the same record sets.

Primary Record Routing Policy
- Create a second record set, provide record details and
Name
astest.internaltest.com
.

Provide Secondary Record...