Re: [squid-users] multi original servers

2008-06-09 Thread Ben Hollingsworth

Ken W. wrote:

Under squid's reverse proxy mode, if there are more than one original
server, how to config it?

cache_peer InsideIP1 parent 80 0 no-query originserver  name=Myserver
round-robin
cache_peer InsideIP2 parent 80 0 no-query originserver  name=Myserver
round-robin

Is the config above right? The two lines have the same values of
'name=' , is it right?
  


In my testing, I found that the names had to be slightly different.  For 
instance:


cache_peer INTERNALIP1 parent 80 0 no-query originserver login=PASS 
name=INTERNALNAME1-peer sourcehash
cache_peer INTERNALIP2 parent 80 0 no-query originserver login=PASS 
name=INTERNALNAME2-peer sourcehash

cache_peer_access INTERNALNAME1-peer allow sites_INTERNALNAME
cache_peer_access INTERNALNAME2-peer allow sites_INTERNALNAME




begin:vcard
fn:Ben Hollingsworth
n:Hollingsworth;Ben
org:BryanLGH Health System;Information Technology
adr:;;1600 S. 48th St.;Lincoln;NE;68506;USA
email;internet:[EMAIL PROTECTED]
title:Systems Programmer
tel;work:402-481-8582
tel;fax:402-481-8354
tel;cell:402-432-5334
url:http://www.bryanlgh.org
version:2.1
end:vcard



Re: [squid-users] multi original servers

2008-06-09 Thread Amos Jeffries
> Hello,
>
> Under squid's reverse proxy mode, if there are more than one original
> server, how to config it?
>
> cache_peer InsideIP1 parent 80 0 no-query originserver  name=Myserver
> round-robin
> cache_peer InsideIP2 parent 80 0 no-query originserver  name=Myserver
> round-robin
>
> Is the config above right? The two lines have the same values of
> 'name=' , is it right?

No. name= MUST be unique.

The peers get grouped according to the algorithm they use 'round-robin' in
your case.
You can also make multiple 'groups' on any request criteria and use
cache_peer_access to route requests around or prevent a peer handling
certain ones.

Amos



Re: [squid-users] multi original servers

2008-06-09 Thread Ken W.
2008/6/10 Ben Hollingsworth <[EMAIL PROTECTED]>:

>
> In my testing, I found that the names had to be slightly different.  For
> instance:
>
> cache_peer INTERNALIP1 parent 80 0 no-query originserver login=PASS
> name=INTERNALNAME1-peer sourcehash
> cache_peer INTERNALIP2 parent 80 0 no-query originserver login=PASS
> name=INTERNALNAME2-peer sourcehash
>
> cache_peer_access INTERNALNAME1-peer allow sites_INTERNALNAME
> cache_peer_access INTERNALNAME2-peer allow sites_INTERNALNAME
>

Thanks all.
Under this setting, when one original server was down, can Squid
exclude it automatically?


Re: [squid-users] multi original servers

2008-06-09 Thread Amos Jeffries
> 2008/6/10 Ben Hollingsworth <[EMAIL PROTECTED]>:
>
>>
>> In my testing, I found that the names had to be slightly different.  For
>> instance:
>>
>> cache_peer INTERNALIP1 parent 80 0 no-query originserver login=PASS
>> name=INTERNALNAME1-peer sourcehash
>> cache_peer INTERNALIP2 parent 80 0 no-query originserver login=PASS
>> name=INTERNALNAME2-peer sourcehash
>>
>> cache_peer_access INTERNALNAME1-peer allow sites_INTERNALNAME
>> cache_peer_access INTERNALNAME2-peer allow sites_INTERNALNAME
>>
>
> Thanks all.
> Under this setting, when one original server was down, can Squid
> exclude it automatically?
>

yes, there is a small delay (about 10 requests) for it to detect the
down-state then its excluded. It's checked at intervals to see if its up
again at which point it resumes service. The cache_peer options include a
set of monitor* bits to control the testing.

Amos





Re: [squid-users] multi original servers

2008-06-30 Thread Jeff Peng
On Tue, Jun 10, 2008 at 12:33 AM, Ben Hollingsworth
<[EMAIL PROTECTED]>
>
> cache_peer INTERNALIP1 parent 80 0 no-query originserver login=PASS
> name=INTERNALNAME1-peer sourcehash
> cache_peer INTERNALIP2 parent 80 0 no-query originserver login=PASS
> name=INTERNALNAME2-peer sourcehash

where is sourcehash selection?
In squid-3.0's config file, I didn't see that keyword.


Re: [squid-users] multi original servers

2008-06-30 Thread Amos Jeffries

Jeff Peng wrote:

On Tue, Jun 10, 2008 at 12:33 AM, Ben Hollingsworth
<[EMAIL PROTECTED]>

cache_peer INTERNALIP1 parent 80 0 no-query originserver login=PASS
name=INTERNALNAME1-peer sourcehash
cache_peer INTERNALIP2 parent 80 0 no-query originserver login=PASS
name=INTERNALNAME2-peer sourcehash


where is sourcehash selection?
In squid-3.0's config file, I didn't see that keyword.


Apparently it was new in 2.6 and none ported it over.


Amos
--
Please use Squid 2.7.STABLE3 or 3.0.STABLE7