pcp
[Top] [All Lists]

Re: [pcp] PCP services startup order

To: Marko Myllynen <myllynen@xxxxxxxxxx>, pcp developers <pcp@xxxxxxxxxxx>
Subject: Re: [pcp] PCP services startup order
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 4 Feb 2016 20:18:02 +1100
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <56B30E68.9050709@xxxxxxxxxx>
References: <56B30E68.9050709@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
On 04/02/16 19:40, Marko Myllynen wrote:
Hi,

Related to the recent discussions around pmcd(1) and zbxpcp(3) [1,2] I
checked the init script files provided by PCP:

# grep chkconfig: /etc/init.d/pm* | sort
/etc/init.d/pmcd:# chkconfig: - 95 05
/etc/init.d/pmie:# chkconfig: - 95 05
/etc/init.d/pmlogger:# chkconfig: - 95 05
/etc/init.d/pmmgr:# chkconfig: - 95 05
/etc/init.d/pmproxy:# chkconfig: - 95 05
/etc/init.d/pmwebd:# chkconfig: - 95 05

Wouldn't it be better to prioritize pmcd first and then start the rest
(prioritizing them as needed as well)?

For a daemon like pmcd(1) used by many other services 95 is perhaps  a
bit late although I realize that some PMDAs might have dependencies to
other services. But I wonder would something like 85 still be possible
as pmcd(1) startup priority? (Zabbix Agent is started at 86.)

1) http://oss.sgi.com/pipermail/pcp/2016-January/009403.html
2) http://oss.sgi.com/pipermail/pcp/2016-January/009410.html

Thanks,


I think 95 is an (almost) arbitrary number plucked from "the pool of ignorance".

With so many init-like schemes in play now, I'm not sure it is possible to arrive at a "correct" choice everywhere and indeed the chkconfig: line is irrelevant on lots of platforms.

And there is one *added* confusion here, namely that things like pmie and pmlogger (and possibly pmmgr) _could_ be launching a mix of PMAPI clients that are fetching from local or remote pmcd instances, and for the remote ones, it matters not a toss when then local pmcd is started, nor if it is started at all!

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