Re: [squid-users] question on external_acl_type

From: Norio Korekawa <[email protected]>
Date: Mon, 31 Jan 2005 17:19:31 +0900 (JST)

Hello again Scott,

> >> There is another option that specifies how long the helper caches it
> >> data for....
> >>
> >> external_acl_type myacltype ttl=600 %LOGIN %SRC %DST %{Referer}
> >> %{User-Agent} /usr/lib/squid/myaclhelper.pl
> >>
> >> Where 600 is the cached answer timer.
> >>
> >> For testing I normally set it really low so that the responses are
> >> almost real-time but in the real world this creates way too much
> >> overhead.
> >
> > Yes, I already tried ttl with the following statement, but the result
> > did not change... If this was true, I think myaclhelper.pl would not
> > be kicked by squid within one hour after myacl passes. Or is this my
> > misunderstanding...?
> >
> > external_acl_type myacltype ttl=3600 negative_ttl=120 %LOGIN %SRC %DST
> > %{Referer} %{User-Agent} /usr/lib/squid/myaclhelper.pl
> >
> > # ttl=n TTL in seconds for cached results (defaults to
> > 3600
> > # for 1 hour)
> >
> > Thanks.
> > Norio
> >
>
> I think you are understanding rightly.. the ttl is the timer for the
> helper, meaning that the helper has a cache and that cache is cleared
> when the ttl of the helper is expired
>
> I think the helper is destroyed and a new one is spawned at this
> point...

Well, I checked PID and TIME of my helpers: itag_auth.pl(indicated
as myaclhelper.pl above), but they did not change. So I don't think
my helpers are destroyed and newly spawned... And also, I think squid
dies, whenever one of helpers dies or exits(I'm running squid with -X
and -N options and it functions in this way as far as I know.)

[korekawa@squid ~]$ ps aucx | grep itag
squid 15961 0.0 1.2 7412 3104 ? S 17:07 0:00 itag_auth.pl
squid 15962 0.0 1.2 7404 3048 ? S 17:07 0:00 itag_auth.pl
squid 15963 0.0 1.2 7404 3048 ? S 17:07 0:00 itag_auth.pl
squid 15964 0.0 1.2 7404 3048 ? S 17:07 0:00 itag_auth.pl
squid 15965 0.0 1.2 7404 3048 ? S 17:07 0:00 itag_auth.pl

How do you think? Or any other possible reason for kicking helpers so often?

Thanks.
Norio

> >>> I think my squid.conf has some problems, but I don't know what they
> >>> are...
> >>>
> >>> Any answer would be appreciated.
> >>> Thanks in advance.
> >>> Norio
> >>
> >>
> >> This email and any files transmitted with it are confidential and
> >> intended solely for the
> >> use of the individual or entity to whom they are addressed. Please
> >> notify the sender
> >> immediately by email if you have received this email by mistake and
> >> delete this email
> >> from your system. Please note that any views or opinions presented in
> >> this email are solely
> >> those of the author and do not necessarily represent those of the
> >> organisation.
> >> Finally, the recipient should check this email and any attachments
> >> for the presence of
> >> viruses. The organisation accepts no liability for any damage caused
> >> by any virus
> >> transmitted by this email.
Received on Mon Jan 31 2005 - 01:19:41 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 07 2005 - 12:59:36 MST