pcp
[Top] [All Lists]

Re: sosreport and pcp

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: sosreport and pcp
From: Michele Baldessari <michele@xxxxxxxxxx>
Date: Wed, 30 Apr 2014 08:49:26 +0100
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acksyn.org; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received; s=2010; t=1398844167; bh=9DTWnMbmpZVJ9C8g9vt+oIDStX9feEpSYpP0Cq+oP08=; b=eVwTc9P0cm29 XrEgvxmJnP/YL27pSiefRBRjGs3va8hy3kAy4Q28/N2zJirNqo2FBzV4JrSv6beY v6nj9Uqm8AdkjyLZOMGZKk68r1EvsXWfGITWd63tYpHu+YlJanGVG7KCPL9kluRr FZWlY+73SV4eYLYq0CmeTLqjzaSijKg=
In-reply-to: <y0mzjj4j5pp.fsf@xxxxxxxx>
References: <20140429141502.GD15985@xxxxxxxxxxxxxxx> <y0mzjj4j5pp.fsf@xxxxxxxx>
User-agent: Mutt/1.5.21 (2012-12-30)
Hi Frank,

On Tue, Apr 29, 2014 at 03:28:18PM -0400, Frank Ch. Eigler wrote:
> michele wrote:
> > [...]
> > I am in the process of adding support for PCP in sosreport[1]. [...]
> > /var/log/pcp, /var/lib/pcp/config, /etc/pcp,
> > /etc/pcp.conf, /etc/pcp.env, /etc/pcp.sh
> 
> Note that /etc/pcp.conf is an input to .env / .sh; the latter are just
> non-adustable shell scripts.  The variables set inside /etc/pcp.conf
> can redirect the location of many other bits.  For example, instead of
> hardcoding the /var/log/pcp directory name, sosreport -might- consider
> getting the PCP_LOG_DIR value out of /etc/pcp.conf.

good idea, I did this[1] so customized cases will be covered.

> > [...]  I'd imagine that extra carefulness needs to be taken for
> > /var/log/pcp in order to avoid collecting stuff (logger data?) that
> > is bigger than X unless explicitely asked for. I assume they can
> > grow moderately big, although I don't have any real-world data on
> > that.
> 
> The bulk archives (*.[0-9]*, .meta, .index files) certainly grow big:
> 10-20 MB per day per host, kept by default for 14 days.  It can blow
> up multiplicatively for longer-than-default or multiple-host
> logging.  OTOH, the files are highly (90%+) compressible, and provide
> a good detailed performance overview of the host(s).
> 
> Other files in there are small and valuable for diagnosing problems
> with pcp itself.

Ok. I've added an sensible default upper limit (100MB) and a user can
override via an option.

Thanks again and regards,
Michele

[1] https://github.com/mbaldessari/sosreport/blob/pcp-plugin/sos/plugins/pcp.py
-- 
Michele Baldessari            <michele@xxxxxxxxxx>
C2A5 9DA3 9961 4FFB E01B  D0BC DDD4 DCCB 7515 5C6D

<Prev in Thread] Current Thread [Next in Thread>