[Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-03 Thread Raoul Bhatia [IPAX]
hi, i today added log_level and keepalive options to the mysql-proxy ra: log_level (error|warning|info|message|debug|) Log all messages of level (error|warning|info|message|debug|) or higer. An empty value disables logging. keepalive (true|false|): Try to restart the proxy if it crashed (d

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-03 Thread Raoul Bhatia [IPAX]
On 09/03/2009 11:04 AM, Raoul Bhatia [IPAX] wrote: > hi, > > i today added log_level and keepalive options to the mysql-proxy ra: > > log_level (error|warning|info|message|debug|) > Log all messages of level (error|warning|info|message|debug|) or > higer. An empty value disables logging. > >

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-03 Thread Raoul Bhatia [IPAX]
On 09/03/2009 11:09 AM, Raoul Bhatia [IPAX] wrote: > On 09/03/2009 11:04 AM, Raoul Bhatia [IPAX] wrote: >> hi, >> >> i today added log_level and keepalive options to the mysql-proxy ra: >> >> log_level (error|warning|info|message|debug|) >> Log all messages of level (error|warning|info|message|de

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-03 Thread Florian Haas
On 2009-09-03 11:04, Raoul Bhatia [IPAX] wrote: > hi, > > i today added log_level and keepalive options to the mysql-proxy ra: > > log_level (error|warning|info|message|debug|) > Log all messages of level (error|warning|info|message|debug|) or > higer. An empty value disables logging. > > ke

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-03 Thread Raoul Bhatia [IPAX]
On 09/03/2009 11:26 AM, Florian Haas wrote: > Why not simply report $OCF_NOT_RUNNING on monitor, and let the CRM > handle the restart? That way you'll actually have the CRM keep tabs on > failures via failcount, and give it the possibility to react. i came across some mysql-proxy hangs that the my

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-08 Thread Dejan Muhamedagic
Hi Raoul, On Thu, Sep 03, 2009 at 11:21:59AM +0200, Raoul Bhatia [IPAX] wrote: > On 09/03/2009 11:09 AM, Raoul Bhatia [IPAX] wrote: > > On 09/03/2009 11:04 AM, Raoul Bhatia [IPAX] wrote: > >> hi, > >> > >> i today added log_level and keepalive options to the mysql-proxy ra: > >> > >> log_level (er

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-08 Thread Raoul Bhatia [IPAX]
On 09/08/2009 01:03 PM, Dejan Muhamedagic wrote: > log_level. And the regular expression test for the same parameter. > > Also, log_level set to empty cannot be distinguished from > log_level not set at all using grep(1) or test(1). You either > have to find another way or change the usage. That i

Re: [Linux-ha-dev] [PATCH] add log_level and keepalive to mysql-proxy ra

2009-09-08 Thread Dejan Muhamedagic
Hi, On Tue, Sep 08, 2009 at 02:50:09PM +0200, Raoul Bhatia [IPAX] wrote: > On 09/08/2009 01:03 PM, Dejan Muhamedagic wrote: > > log_level. And the regular expression test for the same parameter. > > > > Also, log_level set to empty cannot be distinguished from > > log_level not set at all using g