[squid-users] Re: Performance problems - need some advice

From: Jan-Frode Myklebust <mykleb@dont-contact.us>
Date: Wed, 8 Feb 2006 12:32:23 +0100

On 2006-02-08, Jan-Frode Myklebust <mykleb@no.ibm.com> wrote:
>
> I use Performance CoPilot from http://oss.sgi.com/projects/pcp/ for

PCP and Squid tiny-howto:

Download and install PCP from:

        ftp://oss.sgi.com/projects/pcp/download/

Start it with '/ect/init.d/pcp start'. Configure the weblog plugin with:

        cd /var/lib/pcp/pmdas/weblog/
        ./Install

        # Point the access log to .../squid/access.log and
        # the error log to a dummy file since it's not used.

My last line of the /var/lib/pcp/config/web/weblog.conf is:

        server hostname.domain.name on SQUID /var/log/squid/access.log CERN_err /var/log/squid/dummy_error.log

Now you can get a listing of all available metrics by:

        pminfo

and all web/squid metrics are:

        pminfo | grep web

Each value can be gathered with 'pmval':

        pmval web.allservers.bytes.total
        pmval web.allservers.requests.total
        pmval web.perserver.requests.size.le3k

and you can put multiple of these in a single graphical view
using f.ex. pcpmon from http://reliable.sourceforge.net/pcp/download.html

For archiving and post mortem analyzis the pmlogger has to be used.
This is configured under /var/lib/pcp/config/pmlogger/ and will then
generate archives under /var/log/pcp/pmlogger/ that can be probed with
the same pmval or pcpmon tools.

  -jf
Received on Wed Feb 08 2006 - 04:33:59 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST