pcp
[Top] [All Lists]

Re: [pcp] Local context vs dynamic namespace

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Local context vs dynamic namespace
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 15 Apr 2010 08:48:55 +1000
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <1927427945.612971271190242960.JavaMail.root@xxxxxxxxxxxxxxxxxx>
References: <1927427945.612971271190242960.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Reply-to: kenj@xxxxxxxxxxxxxxxx
On reflection, I think they ALL need to produce the same result (as the
last one).

-n pmns does not really change the expectation of output (assuming the
pmns you feed it is at least similar to the installed one, and it is
_exactly_ similar in the examples below) ... the presence or absence of
the -n option might change the available metric names, it is unlikely to
change the name <--> pmid mapping.

Independent of how you arrive at 70.*.* as the initial pmid for the
metric named mmv, what you do next should be the same.

So I'm off to add some pmcd-based bloat into libpcp ...

On Wed, 2010-04-14 at 06:24 +1000, Nathan Scott wrote:
> ----- "Ken McDonell" <kenj@xxxxxxxxxxxxxxxx> wrote:
> 
> > OK, this looks like getting pretty ugly.
> > 
> > Consider the following 4 outputs from pminfo ...
> > 
> > kenj@bozo:~/src/pcp$ pminfo -n /var/lib/pcp/pmns/root -L -m mmv
> > mmv PMID: 70.*.*
> > 
> > kenj@bozo:~/src/pcp$ pminfo -n /var/lib/pcp/pmns/root -m mmv
> > mmv PMID: 70.*.*
> > 
> > kenj@bozo:~/src/pcp$ pminfo -L -m mmv
> > mmv PMID: 70.*.*
> > 
> > kenj@bozo:~/src/pcp$ pminfo -m mmv
> > mmv.test.strings PMID: 70.1.6
> > mmv.test.string PMID: 70.1.5
> > mmv.test.interval PMID: 70.1.4
> > mmv.test.indom PMID: 70.1.3
> > mmv.test.discrete PMID: 70.1.2
> > mmv.test.counter PMID: 70.1.1
> > mmv.debug PMID: 70.0.1
> > mmv.reload PMID: 70.0.0
> > 
> > According to my original scope, these are all correct.
> > 
> > Nathan would like the third one to produce the same output as the
> > last
> > one.
> > 
> > If this was to happen, what is the "correct" output for the first and
> > second cases?
> > 
> > I'd like to see some justification, not just votes please.
> 
> I think first two are OK as is.  I'm wondering also if a pminfo flag
> is needed for both cases 3 and 4, so that by default they do the same
> thing (case 4), but with the new flag report on dynamic nodes (AIUI,
> there's no way currently to tell which remote pmcd nodes are dynamic?)
> 
> The justification is the local context should not behave differently
> to using host context for no real reason, it'll result in bugs & some
> surprises for users (like I got!).
> 
> cheers.
> 


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