weight property
Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total. Note the following:
-
You must specify a value for the
Weight
element for every weighted resource record set. -
You can only specify one
ResourceRecord
per weighted resource record set. -
You can't create latency, failover, or geolocation resource record sets that
have the same values for the
Name
andType
elements as weighted resource record sets. -
You can create a maximum of 100 weighted resource record sets that have the
same values for the
Name
andType
elements. -
For weighted (but not weighted alias) resource record sets, if you set
Weight
to0
for a resource record set, Route 53 never responds to queries with the applicable value for that resource record set. However, if you setWeight
to0
for all resource record sets that have the same combination of DNS name and type, traffic is routed to all resources with equal probability.The effect of setting
Weight
to0
is different when you associate health checks with weighted resource record sets. For more information, see Options for Configuring Route 53 Active-Active and Active-Passive Failover in the Amazon Route 53 Developer Guide.
Implementation
final int? weight;