Re: [squid-users] origin server health detect

2008-11-04 Thread nitesh naik
Amos,

Thanks for your reply.

I tried squid2.6 and it works as per requirement . Squid will stop
sending request to origin if origin returns http status code is other
than 2xx.

cache_peer 10.0.0.175 parent 80 0 no-query originserver round-robin
monitorurl=/healthcheck.gif monitorinterval=1

Not sure how difficult it is to port it to squid3 as it is already
supported in squid2.6.  We will take a look at code and see if we
could port it to squid3.

Regards
Nitesh


On Tue, Nov 4, 2008 at 6:22 PM, Amos Jeffries <[EMAIL PROTECTED]> wrote:
> nitesh naik wrote:
>>
>> Hi,
>>
>> Is there way to stop forwarding requests to origin if monitoring url
>> returns 404 in squid 3 ?  Sometimes few nodes in our origin server
>> cluster are unavailable and we would like to disable origin which is
>> up but responding with 404 http status code.
>>
>> Also I would like to know if there is option to check origin server
>> health in squid 3.
>>
>> Regards
>> Nitesh
>
> Sory, those particular options are not yet ported to either Squid-3 release.
> Such failover detection is automatic behavior in all current Squid, but I
> suspect the automatics are not fast enough if you are needing the explicit
> settings.
> The monitor* settings are marked for porting in 3.2 at some point. please
> help out by sponsoring a developer to pick up the feature if its very
> important for you.
>
> Amos
> --
> Please be using
>  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
>  Current Beta Squid 3.1.0.1
>


Re: [squid-users] origin server health detect

2008-11-04 Thread Amos Jeffries

nitesh naik wrote:

Hi,

Is there way to stop forwarding requests to origin if monitoring url
returns 404 in squid 3 ?  Sometimes few nodes in our origin server
cluster are unavailable and we would like to disable origin which is
up but responding with 404 http status code.

Also I would like to know if there is option to check origin server
health in squid 3.

Regards
Nitesh


Sory, those particular options are not yet ported to either Squid-3 release.
Such failover detection is automatic behavior in all current Squid, but 
I suspect the automatics are not fast enough if you are needing the 
explicit settings.
The monitor* settings are marked for porting in 3.2 at some point. 
please help out by sponsoring a developer to pick up the feature if its 
very important for you.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
  Current Beta Squid 3.1.0.1


[squid-users] origin server health detect

2008-11-03 Thread nitesh naik
Hi,

Is there way to stop forwarding requests to origin if monitoring url
returns 404 in squid 3 ?  Sometimes few nodes in our origin server
cluster are unavailable and we would like to disable origin which is
up but responding with 404 http status code.

Also I would like to know if there is option to check origin server
health in squid 3.

Regards
Nitesh