Re: Duplicate peers

From: Mark Nottingham <mnot_at_yahoo-inc.com>
Date: Tue, 10 Jun 2008 16:35:32 +1000

Yes; however, if the first peer fails but isn't considered down yet,
it'll be retried. This isn't optimal for an accelerator, esp. if it's
failing because of a connect timeout.

On 10/06/2008, at 4:17 PM, Henrik Nordstrom wrote:

> 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

--
Mark Nottingham       mnot_at_yahoo-inc.com
Received on Tue Jun 10 2008 - 06:35:45 MDT

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