[Yum-devel] urlgrabber and rrdns
Johnny Hughes
mailing-lists at hughesjr.com
Tue Feb 14 11:26:33 UTC 2006
When using urlgrabber against an rrdns name, I am seeing that it picks 1
IP address from the list an overwhelming percentage of the time.
I have tested 2.9.6 and 2.9.7 urlgrabber and both exhibit this trait.
Using a simple script to grab a url from a webserver that is tied to a
rrdns with several names, 1 IP came up more than 95% of the time on
every test.
Pinging the the same rrdns list in a loop script ends up with the
distribution of IPs as you would expect ... nearly a 50-50 split for 2
IPs, a 1/3 split for 3 etc.
I think that the desired effect if you have more than 1 IP address
returned would be to take the first listed IP address ... or if that is
not possible, at least a random IP address from an RRDNS list.
I am not sure if this is a urlgrabber issue or whatever resolves the
URL's name in python, but I don't think it is the desired behavior.
Thanks,
Johnny Hughes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20060214/182689e5/attachment.pgp
More information about the Yum-devel
mailing list