Geoproximity routing
With geoproximity routing, Amazon Route 53 routes traffic to your resources based on the location of your users and your resources. It sends traffic to the closest available resource. You can also choose to send more or less traffic to a given resource by setting a value called a bias. A bias expands or shrinks the geographic region from which traffic goes to a resource.
You create geoproximity rules for your resources and specify one of the following values for each rule:
If you're using AWS resources, specify the AWS Region or Local Zone Group that you created the resource in.
If you're using non-AWS resources, specify the latitude and longitude of the resource.
To use AWS Local Zones, you have to first enable them. For more information, see Getting started with Local Zones in the AWS Local Zones User Guide.
To learn about the difference between AWS Regions and Local Zones, see Regions and Zones in the Amazon EC2 User Guide.
To optionally change the size of the geographic region from which Route 53 routes traffic to a resource, specify the applicable value for the bias:
To expand the size of the geographic region from which Route 53 routes traffic to a resource, specify a positive integer from 1 to 99 for the bias. Route 53 shrinks the size of adjacent regions.
To shrink the size of the geographic region from which Route 53 routes traffic to a resource, specify a negative bias of -1 to -99. Route 53 expands the size of adjacent regions.
Note
Route 53 is updating the Traffic Flow console. During the transition period, you can continue to use the old console.
Choose the tab for the console you are using.
The effect of changing the bias for your resources depends on several factors, including the following:
The number of resources that you have.
How close the resources are to each other.
The number of users near the border between geographic regions. For example, suppose you have resources in the AWS Regions US East (N. Virginia) and US West (Oregon), and many users in Dallas, Austin, and San Antonio, Texas, USA. Those cities are about the same distance from both resources, so a small change in bias could shift a lot of traffic from one AWS Region to another.
We suggest that you change the bias in small steps to avoid overwhelming your resources due to a sudden shift in traffic.
For more information, see How Amazon Route 53 uses EDNS0 to estimate the location of a user.
How Amazon Route 53 uses bias to route traffic
Here's the formula that Amazon Route 53 uses to determine how to route traffic:
- Bias
Biased distance = actual distance * [1 - (bias/100)]
When the value of the bias is positive, Route 53 treats the source of a DNS query and the resource in a geoproximity record (such as an EC2 instance in an AWS Region) as if they were closer together than they really are. For example, suppose you have these geoproximity records:
A record for web server A, which has a positive bias of 50
A record for web server B, which has no bias
When a geoproximity record has a positive bias of 50, Route 53 halves the distance between the source of a query and the resource for that record. Then Route 53 figures out which resource is closer to the source of the query. Suppose web server A is 150 km from the source of a query and web server B is 100 km from the source of the query. If neither record had a bias, Route 53 would route the query to web server B because it's closer. However, because the record for web server A has a positive bias of 50, Route 53 treats web server A as if it's 75 km from the source of the query. As a result, Route 53 routes the query to web server A.
Here's the calculation for a positive bias of 50:
Bias = 50 Biased distance = actual distance * [1 - (bias/100)] Biased distance = 150 kilometers * [1 - (50/100)] Biased distance = 150 kilometers * (1 - .50) Biased distance = 150 kilometers * (.50) Biased distance = 75 kilometers