29 messages in net.sourceforge.lists.courier-usersRe: [courier-users] MX randomizing: t...
FromSent OnAttachments
Rodrigo SeveroJun 22, 2005 1:28 pm 
Sam VarshavchikJun 22, 2005 2:05 pm 
Rodrigo SeveroJun 23, 2005 2:32 am 
ArnoJun 23, 2005 4:06 am 
Rodrigo SeveroJun 23, 2005 5:12 am 
Sam VarshavchikJun 23, 2005 6:06 am 
Rodrigo SeveroJun 23, 2005 6:24 am 
Sam VarshavchikJun 23, 2005 6:58 am 
Ben KennedyJun 23, 2005 7:07 am 
Sam VarshavchikJun 23, 2005 7:26 am 
Gordon MessmerJun 23, 2005 8:39 am 
Rodrigo SeveroJun 23, 2005 1:06 pm 
Alessandro VeselyJun 24, 2005 12:04 am 
Rodrigo SeveroJun 24, 2005 4:32 am 
Scott MorizotJun 24, 2005 5:31 am 
Sam VarshavchikJun 24, 2005 6:00 am 
Rodrigo SeveroJun 24, 2005 6:43 am 
Sam VarshavchikJun 24, 2005 7:06 am 
Scott MorizotJun 24, 2005 7:13 am 
Rodrigo SeveroJun 24, 2005 8:02 am 
Gordon MessmerJun 24, 2005 8:21 am 
Gordon MessmerJun 24, 2005 8:26 am 
Rodrigo SeveroJun 24, 2005 8:50 am 
Scott MorizotJun 24, 2005 9:48 am 
Sam VarshavchikJun 24, 2005 10:33 am 
Rodrigo SeveroJun 24, 2005 10:41 am 
Alessandro VeselyJun 25, 2005 9:29 am 
Rodrigo SeveroJun 26, 2005 7:35 am 
Rodrigo SeveroJun 26, 2005 9:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] MX randomizing: trying to understand thesources.Actions...
From:Gordon Messmer (yiny@eburg.com)
Date:Jun 24, 2005 8:21:41 am
List:net.sourceforge.lists.courier-users

Rodrigo Severo wrote:

I've checked bind9's documentation, it's random-cyclic as they call it, i.e., they just randomly choose the new first member of the list and then recreate the list in the same order from this point.

As far as I can understand this would result in much less than reasonable load balancing for MX records.

Why do you believe that to be the case?

To use the example you provided later:

Let's see this example:

10 brsmtp02.br.abnamro.com 10 brsmtp04.br.abnamro.com 15 naxpf001.abnamro.com 15 naxpf002.abnamro.com 15 naxpf003.abnamro.com 15 naxpf011.abnamro.com 15 naxpf012.abnamro.com 15 naxpf013.abnamro.com 30 plum03ap.abnamro.com 30 walnut001ap.abnamro.com

In this case brsmtp02.br.abnamro.com has 9 out of 10 chances of being contacted and brsmtp04.br.abnamro.com have the remaining 1 out of 10 chances. If we are using bind as DNS cache.

That shouldn't be the case at all. The priority 15 hosts probably illustrate bind 9's strategy best. If bind 9 is choosing a random first entry, then it should choose naxpf001 about 16% of the time. It will be followed by naxpf002, etc, to the end of the list. On subsequent queries, each host will be as likely as any other to be the first item in the list, so naxpf001 might be selected. It would be followed by naxpf012, etc, through naxpf003.

This is a totally reasonable randomness strategy. It provides suitable randomness for simple round-robin host selection, and should never give 90% priority to anything. Its implementation is highly performant, and very simple, which are respectable design decisions.