Search squid archive

Re: any updates/info on using spread with squid for logging ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



actually using the FIFO file works, but under high load, something Very Wrong happens, and squid starts either slowing down, or refuses connections.
  
  basically, I have:
  cache_access_log /tmp/squidlogs
  (and emulate_httpd_log on)
  
  where /tmp/squidlogs is:
  prw-r--r--  1 squid root 0 Jul  9 18:47 squidlogs
  
  and I'm using the perl/spread logging script provided by the people who made mod_log_spread
  (found here:   http://tinyurl.com/7fond)
 
 to send the requests to spread, like this:
  
  /bin/sh -c exec /usr/local/bin/error_log_spread.pl -h -g error -s 4809 < /tmp/squidlogs
  
  I'm using spreadlogd on the logging machine, and it's a very simple config:
  
  BufferSize = 65536
  Spread {
          Port = 4809
          Log {
                  RewriteTimestamp = CommonLogFormat
                  Group = access
                 File = /var/log/spread/squid-access_log
          }   
 
 I know that this isn't the spread-users list (I'll post this there, as well), but I'm wondering if the reason this doesn't work is on the squid/spread/OS side of things.   As soon as I turn on logging (it's commented out in squid.conf at the moment) squid quickly starts to take longer and longer to answer queries, and becomes unusable after a couple of minutes.
  
  Also:  these squids are being used as accelerator/surrogates, they're doing about 250 req/sec at peak.
  thanks for any help,
  john
 
 
 
----- Original Message ----
From: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
To: john allspaw <jallspaw@xxxxxxxxx>
Cc: Squid Users <squid-users@xxxxxxxxxxxxxxx>
Sent: Tue Aug  9 05:13:58 2005
Subject: Re:  any updates/info on using spread with squid for logging ?

On Fri, 5 Aug 2005, john allspaw wrote:

> It would appear that the only way squid can log is to a file.

Correct.

>Even logging to a fifo with a pipe into the spread ring doesn't look
> like it works all that well.

Should work. If not the perl File::Tail module is excellent for following 
log files live, and it should not be very hard to use this to have the 
Squid logs sent to Spread.

Regards
Henrik



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux