D
D
ddox2016-08-18 16:49:24
Domain Name System
ddox, 2016-08-18 16:49:24

Why is the weight of the SRV record needed if there is a priority?

I do not understand what is the point of using the weight of the SRV record? Wikipedia writes:
priority: the priority of the target host, lower value means more preferred.
weight: relative weight for entries with the same priority.
What for to register weight if it is possible to specify an unequal priority for records? Or am I missing something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2016-08-18
@ddox

priority is a mandatory parameter, a service with a higher priority will be used only if services with a lower priority are unavailable, used, for example, for redundancy. If you have a combat server and a backup server, the backup one is given a higher priority, requests to it will only come when the main one is unavailable.
weight is for load distribution, the destination server is chosen randomly based on the weight. If you have several combat servers of different configurations, you can prescribe a weight for them, taking into account their performance, so that more requests come to more productive servers. At the same time, even servers with a small weight will receive a (proportionately) small part of the requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question