pcp
[Top] [All Lists]

Re: [pcp] Help with troubleshooting issue with postfix pmda

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Help with troubleshooting issue with postfix pmda
From: Chandana De Silva <chandana@xxxxxxxxxxxxx>
Date: Tue, 23 Aug 2016 13:20:52 +1000
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1470977382.22125.76.camel@xxxxxxxxxxxxx>
References: <1470971856.22125.75.camel@xxxxxxxxxxxxx> <302816545.1032371.1470972598908.JavaMail.zimbra@xxxxxxxxxx> <1470977382.22125.76.camel@xxxxxxxxxxxxx>
Reply-to: chandana@xxxxxxxxxxxxx
Hello Nathan,
I have been having a look at the postfix pmda and the memcache pmda to get a sense of how to go about making a fix

I think I need a bit more help.

If I understand this correctly,  the steps are;
1. new function named call_qshape to call qshape for a given queue, read the data and update $caches{$qname}
2. set up file pmda timer (one for each queue) to run the above function

The above two steps wil replace postfix_fetch_callback and postfix_do_refresh.
Am I on the right track ?
Also I can't see the use of the 'cluster' variable in postfix_fetch_callback. It does not get passed in

Thanks
On Fri, 2016-08-12 at 14:49 +1000, Chandana De Silva wrote:
I think that makes sense. Let me see
On Thu, 2016-08-11 at 23:29 -0400, Nathan Scott wrote:
I would punt that the qshape command is blocking for at least one of the queues,
for a long time.  Best way to resolve this is probably in postfix_do_refresh() -
if this was run on an interval timer (see pmdamemcache.pl for example), instead
of serially during postfix_fetch_callback(), the problem should be resolved.
<Prev in Thread] Current Thread [Next in Thread>