Hi Keisuke-san,

On Thu, Nov 22, 2012 at 06:27:59PM +0900, Keisuke MORI wrote:
> Hi,
> 
> 2012/11/22 Dejan Muhamedagic <de...@suse.de>:
> > Hi Lars,
> >
> > On Wed, Nov 21, 2012 at 04:43:08PM +0100, Lars Marowsky-Bree wrote:
> >> On 2012-11-21T16:33:18, Dejan Muhamedagic <de...@suse.de> wrote:
> >>
> >> > Hi,
> >> >
> >> > This is little something which could help while debugging
> >> > resource agents. Setting the environment variable __OCF_TRACE_RA
> >> > would cause the resource agent run to be traced (as in set -x).
> >> > PS4 is set accordingly (that's a bash feature, don't know if
> >> > other shells support it). ocf-tester got an option (-X) to turn
> >> > the feature on. The agent itself can also turn on/off tracing
> >> > via ocf_start_trace/ocf_stop_trace.
> >> >
> >> > Do you find anything amiss?
> >>
> >> I *really* like this.
> >>
> >> But I'd like a different way to turn it on - a standard one that is
> >> available via the CIB configuration, without modifying the script.
> >
> > I don't really want that the script gets modified either.
> > The above instructions are for people developing a new RA.
> 
> I like this, too.
> I would be useful when you need to diagnose in the production
> environment if you can enable / disable it without any modifications
> to RAs.

Of course.

> It might be also helpful if it has a kind of 'hook' functionality that
> allows you to execute an arbitrary script for collecting the runtime
> information such as CPU usage, memory status, I/O status or the list
> of running processes etc. for diagnosis.

Yes. I guess that one could run such a hook in background. Did
you mean that? Or once the RA instance exited? This is a bit
different feature though.

Thanks,

Dejan

> -- 
> Keisuke MORI
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to