PDA

View Full Version : DNS Load Balancing


fed
15th July 2009, 13:18
Hi all,

I would like to use DNS load balancing with ispconfig 3. As I read in a mydns manual this should work by changing the priority value (aux) of a DNS A record. The ispconfig interface does currently not allow to change the priority of an A record. It is only possible to change the priority of a MX record.

Shall I change the priority directly in the mysql table? Or is there another way to change the priority through ispconfig?

That might be a feature request as well?!

Thanks for your input.

fed

admins
16th July 2009, 09:30
Make a feature request, thats important....

admins

till
16th July 2009, 11:55
Shall I change the priority directly in the mysql table?

You can change this in the mysql db. But as far as I know it is not nescessary to set this value for load balancing at all. Just add more then one dns A-Record for every load balancing target.

fed
16th July 2009, 17:03
As I know, mydns uses round robin to select the primary IP if all records have the priority 0. That means each record has the same weight.
If you change the priority to higher values, the corresponding record will have a lower weight and will be returned less.

Here's an example of how hosts were distributed on a 100,000 query test against ten hosts with aux values 10-100. The number shown is the number of times that host was listed first:

aux 10 51,211
aux 20 21,881
aux 30 10.983
aux 40 6,209
aux 50 3,661
aux 60 2,311
aux 70 1,526
aux 80 1,032
aux 90 675
aux 100 511


I will temporary change the values manually and add a CR.

Thanks