[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: [squid-users] configuring squid to go directly in case of upstream proxies are down
From:       Eliezer Croitoru <eliezer () ngtech ! co ! il>
Date:       2012-05-31 3:24:45
Message-ID: 4FC6E47D.1000006 () ngtech ! co ! il
[Download RAW message or body]

On 30/05/2012 16:52, Eliezer Croitoru wrote:
> you can do it using an external helper acl.
> what i would do is a simple "heat beat" marker in a ramfs.
> one loop that will run in the background and will check the status of
> the parent cache_peer every 30 secs or 60 secs and in a case of a
> failure to create a file in the ramfs\tmp that will indicate that the
> parent proxy is down.
>
> two scripts are included for PROXY heartbeat check.
>
> Eliezer
>
<SNIP>
Added into my git repo
https://github.com/elico/squid-helpers/tree/master/squid_helpers/proxy_hb_check

also built a ruby proxystatcheck.rb external helper with cache to lower 
the disk I\O on every url check.

Eliezer

-- 
Eliezer Croitoru
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
eliezer <at> ngtech.co.il
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic