Re: Duplicate peers

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 10 Jun 2008 08:17:24 +0200

On tis, 2008-06-10 at 15:45 +1000, Mark Nottingham wrote:
> Because peerGetSomeParent and then peerGetAllParents are both called
> in the NEVER_DIRECT case (e.g., accelerators), the list of peers to
> use will contain a duplicate; whatever peerGetSomeParent returns will
> be in the list twice, and if it's the first peer (lexically in the
> conf file), it'll be twice in a row. This isn't good, especially for
> round-robin accelerator setups.

It only matters if the first is unreachable or the request otherwise has
to be retried.

The primary forwarding server is always the first in that list, which is
the round-robin selected peer if using round-robin.

The other peers is there just to allow Squid to find an alternate path
if the primary selected one fails.

Regards
Henrik

Received on Tue Jun 10 2008 - 06:17:28 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 10 2008 - 12:00:03 MDT