Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

change of process check in tomcat-ra

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


nozawat at gmail

Oct 26, 2011, 7:36 PM

Post #1 of 11 (903 views)
Permalink
change of process check in tomcat-ra

Hi

I changed the method of the process check in tomcat-ra.
SEARCH_STR does not function when I set tomcat parameter in catalina.sh.

Regards,
Tomo
Attachments: tomcat.patch (0.38 KB)


dejan at suse

Oct 31, 2011, 9:25 AM

Post #2 of 11 (862 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi,

On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
> Hi
>
> I changed the method of the process check in tomcat-ra.
> SEARCH_STR does not function when I set tomcat parameter in catalina.sh.

This is the same one like the other to remove the pid file.
Wrong patch attached?

Thanks,

Dejan

> Regards,
> Tomo


> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


nozawat at gmail

Oct 31, 2011, 5:31 PM

Post #3 of 11 (858 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi Dejan

Sorry,I got a wrong attached file.
I send a right file.

Regards,
Tomo

2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
> Hi,
>
> On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
>> Hi
>>
>>  I changed the method of the process check in tomcat-ra.
>>  SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
>
> This is the same one like the other to remove the pid file.
> Wrong patch attached?
>
> Thanks,
>
> Dejan
>
>> Regards,
>> Tomo
>
>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
Attachments: tomcat.patch (1.26 KB)


dejan at suse

Nov 3, 2011, 9:26 AM

Post #4 of 11 (846 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi,

On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
> Hi Dejan
>
> Sorry,I got a wrong attached file.
> I send a right file.

Are we sure that the pid file is _always_ going to exist and
contain the PID? What's wrong with setting the tomcat_name
parameter when it's really needed (i.e. it is different from the
default "tomcat")?

If you don't produce good arguments, this change looks
superfluous to me.

Cheers,

Dejan

> Regards,
> Tomo
>
> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
> > Hi,
> >
> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
> >> Hi
> >>
> >>  I changed the method of the process check in tomcat-ra.
> >>  SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
> >
> > This is the same one like the other to remove the pid file.
> > Wrong patch attached?
> >
> > Thanks,
> >
> > Dejan
> >
> >> Regards,
> >> Tomo
> >
> >
> >> _______________________________________________________
> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >> Home Page: http://linux-ha.org/
> >
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> >


> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


nozawat at gmail

Nov 3, 2011, 9:55 PM

Post #5 of 11 (847 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi Dejan

> Are we sure that the pid file is _always_ going to exist and
> contain the PID?
I believe that PID file exists, and I include pid.
BTW, it is the next sentence to be important by this change.

> What's wrong with setting the tomcat_name parameter when it's really
> needed (i.e. it is different from the default "tomcat")?
For example, it may not move when CATALINA_OPTS is catalina.sh and is
overwritten.
It is to move without a problem even if an environment variable is set
from the outside that I need.

Regards,
Tomo

2011/11/4 Dejan Muhamedagic <dejan [at] suse>:
> Hi,
>
> On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
>> Hi Dejan
>>
>>  Sorry,I got a wrong attached file.
>>  I send a right file.
>
> Are we sure that the pid file is _always_ going to exist and
> contain the PID? What's wrong with setting the tomcat_name
> parameter when it's really needed (i.e. it is different from the
> default "tomcat")?
>
> If you don't produce good arguments, this change looks
> superfluous to me.
>
> Cheers,
>
> Dejan
>
>> Regards,
>> Tomo
>>
>> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
>> > Hi,
>> >
>> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
>> >> Hi
>> >>
>> >>  I changed the method of the process check in tomcat-ra.
>> >>  SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
>> >
>> > This is the same one like the other to remove the pid file.
>> > Wrong patch attached?
>> >
>> > Thanks,
>> >
>> > Dejan
>> >
>> >> Regards,
>> >> Tomo
>> >
>> >
>> >> _______________________________________________________
>> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> >> Home Page: http://linux-ha.org/
>> >
>> > _______________________________________________________
>> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> > Home Page: http://linux-ha.org/
>> >
>
>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


dejan at suse

Nov 10, 2011, 4:42 AM

Post #6 of 11 (817 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote:
> Hi Dejan
>
> > Are we sure that the pid file is _always_ going to exist and
> > contain the PID?
> I believe that PID file exists, and I include pid.
> BTW, it is the next sentence to be important by this change.
>
> > What's wrong with setting the tomcat_name parameter when it's really
> > needed (i.e. it is different from the default "tomcat")?
> For example, it may not move when CATALINA_OPTS is catalina.sh and is
> overwritten.
> It is to move without a problem even if an environment variable is set
> from the outside that I need.

I'm sorry, but I don't understand much of this. Could you please
rephrase. "may not move", what may (not) move? What is
overwritten? Which environment variable do you refer to?

Cheers,

Dejan

> Regards,
> Tomo
>
> 2011/11/4 Dejan Muhamedagic <dejan [at] suse>:
> > Hi,
> >
> > On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
> >> Hi Dejan
> >>
> >>  Sorry,I got a wrong attached file.
> >>  I send a right file.
> >
> > Are we sure that the pid file is _always_ going to exist and
> > contain the PID? What's wrong with setting the tomcat_name
> > parameter when it's really needed (i.e. it is different from the
> > default "tomcat")?
> >
> > If you don't produce good arguments, this change looks
> > superfluous to me.
> >
> > Cheers,
> >
> > Dejan
> >
> >> Regards,
> >> Tomo
> >>
> >> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
> >> > Hi,
> >> >
> >> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
> >> >> Hi
> >> >>
> >> >>  I changed the method of the process check in tomcat-ra.
> >> >>  SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
> >> >
> >> > This is the same one like the other to remove the pid file.
> >> > Wrong patch attached?
> >> >
> >> > Thanks,
> >> >
> >> > Dejan
> >> >
> >> >> Regards,
> >> >> Tomo
> >> >
> >> >
> >> >> _______________________________________________________
> >> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >> >> Home Page: http://linux-ha.org/
> >> >
> >> > _______________________________________________________
> >> > Linux-HA-Dev: Linux-HA-Dev [at] lists
> >> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >> > Home Page: http://linux-ha.org/
> >> >
> >
> >
> >> _______________________________________________________
> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >> Home Page: http://linux-ha.org/
> >
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> >
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


nozawat at gmail

Nov 10, 2011, 5:06 PM

Post #7 of 11 (808 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi Dejan

>What is overwritten?Which environment variable do you refer to?
It is CATALINA_OPTS.

When CATALINA_OPTS is set from the outside, a right process check is
not possible.
It occurs at following time.
1.-Dname is not set(Outside setting).
2.When -Dname is different.
3.When setting of CATALINA_OPTS is different by cib and outside setting

When I set CATALINA_OPTS in the tomcat-ra from the outside, there is
the same definition to two places(cib and setenv.sh),and When I set
-Dname definitely.
It moves. However, is not it confusing?

Regards,
Tomo

2011/11/10 Dejan Muhamedagic <dejan [at] suse>:
> On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote:
>> Hi Dejan
>>
>> > Are we sure that the pid file is _always_ going to exist and
>> > contain the PID?
>> I believe that PID file exists, and I include pid.
>> BTW, it is the next sentence to be important by this change.
>>
>> > What's wrong with setting the tomcat_name parameter when it's really
>> > needed (i.e. it is different from the default "tomcat")?
>> For example, it may not move when CATALINA_OPTS is catalina.sh and is
>> overwritten.
>> It is to move without a problem even if an environment variable is set
>> from the outside that I need.
>
> I'm sorry, but I don't understand much of this. Could you please
> rephrase. "may not move", what may (not) move? What is
> overwritten? Which environment variable do you refer to?
>
> Cheers,
>
> Dejan
>
>> Regards,
>> Tomo
>>
>> 2011/11/4 Dejan Muhamedagic <dejan [at] suse>:
>> > Hi,
>> >
>> > On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
>> >> Hi Dejan
>> >>
>> >>  Sorry,I got a wrong attached file.
>> >>  I send a right file.
>> >
>> > Are we sure that the pid file is _always_ going to exist and
>> > contain the PID? What's wrong with setting the tomcat_name
>> > parameter when it's really needed (i.e. it is different from the
>> > default "tomcat")?
>> >
>> > If you don't produce good arguments, this change looks
>> > superfluous to me.
>> >
>> > Cheers,
>> >
>> > Dejan
>> >
>> >> Regards,
>> >> Tomo
>> >>
>> >> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
>> >> > Hi,
>> >> >
>> >> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
>> >> >> Hi
>> >> >>
>> >> >>  I changed the method of the process check in tomcat-ra.
>> >> >>  SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
>> >> >
>> >> > This is the same one like the other to remove the pid file.
>> >> > Wrong patch attached?
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Dejan
>> >> >
>> >> >> Regards,
>> >> >> Tomo
>> >> >
>> >> >
>> >> >> _______________________________________________________
>> >> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> >> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> >> >> Home Page: http://linux-ha.org/
>> >> >
>> >> > _______________________________________________________
>> >> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>> >> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> >> > Home Page: http://linux-ha.org/
>> >> >
>> >
>> >
>> >> _______________________________________________________
>> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> >> Home Page: http://linux-ha.org/
>> >
>> > _______________________________________________________
>> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> > Home Page: http://linux-ha.org/
>> >
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


nozawat at gmail

Nov 16, 2011, 9:51 PM

Post #8 of 11 (792 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi Dejan

When I set CATALINA_OPTS from the outside, it is as follows.

1)It is set CATALINA_OPTS by crm-configure.
2)It is set CATALINA_OPTS by external file(setenv.sh)
->setenv.sh is called from run.sh
->In this case I set -Dname by all means.

In this case it causes a mistake.
Therefore I think that I should not use CATALINA_OPTS by a process
monitoring when I consider outside setting.

Does not it become a reason to change the process monitoring?

Regards,
Tomo

2011/11/11 nozawat <nozawat [at] gmail>:
> Hi Dejan
>
>>What is overwritten?Which environment variable do you refer to?
> It is CATALINA_OPTS.
>
> When CATALINA_OPTS is set from the outside, a right process check is
> not possible.
> It occurs at following time.
> 1.-Dname is not set(Outside setting).
> 2.When -Dname is different.
> 3.When setting of CATALINA_OPTS is different by cib and outside setting
>
> When I set CATALINA_OPTS in the tomcat-ra from the outside, there is
> the same definition to two places(cib and setenv.sh),and When I set
> -Dname definitely.
> It moves. However, is not it confusing?
>
> Regards,
> Tomo
>
> 2011/11/10 Dejan Muhamedagic <dejan [at] suse>:
>> On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote:
>>> Hi Dejan
>>>
>>> > Are we sure that the pid file is _always_ going to exist and
>>> > contain the PID?
>>> I believe that PID file exists, and I include pid.
>>> BTW, it is the next sentence to be important by this change.
>>>
>>> > What's wrong with setting the tomcat_name parameter when it's really
>>> > needed (i.e. it is different from the default "tomcat")?
>>> For example, it may not move when CATALINA_OPTS is catalina.sh and is
>>> overwritten.
>>> It is to move without a problem even if an environment variable is set
>>> from the outside that I need.
>>
>> I'm sorry, but I don't understand much of this. Could you please
>> rephrase. "may not move", what may (not) move? What is
>> overwritten? Which environment variable do you refer to?
>>
>> Cheers,
>>
>> Dejan
>>
>>> Regards,
>>> Tomo
>>>
>>> 2011/11/4 Dejan Muhamedagic <dejan [at] suse>:
>>> > Hi,
>>> >
>>> > On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
>>> >> Hi Dejan
>>> >>
>>> >>  Sorry,I got a wrong attached file.
>>> >>  I send a right file.
>>> >
>>> > Are we sure that the pid file is _always_ going to exist and
>>> > contain the PID? What's wrong with setting the tomcat_name
>>> > parameter when it's really needed (i.e. it is different from the
>>> > default "tomcat")?
>>> >
>>> > If you don't produce good arguments, this change looks
>>> > superfluous to me.
>>> >
>>> > Cheers,
>>> >
>>> > Dejan
>>> >
>>> >> Regards,
>>> >> Tomo
>>> >>
>>> >> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
>>> >> > Hi,
>>> >> >
>>> >> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
>>> >> >> Hi
>>> >> >>
>>> >> >>  I changed the method of the process check in tomcat-ra.
>>> >> >>  SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
>>> >> >
>>> >> > This is the same one like the other to remove the pid file.
>>> >> > Wrong patch attached?
>>> >> >
>>> >> > Thanks,
>>> >> >
>>> >> > Dejan
>>> >> >
>>> >> >> Regards,
>>> >> >> Tomo
>>> >> >
>>> >> >
>>> >> >> _______________________________________________________
>>> >> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> >> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> >> >> Home Page: http://linux-ha.org/
>>> >> >
>>> >> > _______________________________________________________
>>> >> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> >> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> >> > Home Page: http://linux-ha.org/
>>> >> >
>>> >
>>> >
>>> >> _______________________________________________________
>>> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> >> Home Page: http://linux-ha.org/
>>> >
>>> > _______________________________________________________
>>> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> > Home Page: http://linux-ha.org/
>>> >
>>> _______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


nozawat at gmail

Dec 19, 2011, 12:20 AM

Post #9 of 11 (738 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi Dejan

I have two reasons to change the process check.
1)There is the pattern that pgrep does not work by contents to set in
CATALINA_OPTS. For example, they are as follows.
e.g.)-XX:+UseConcMarkSweepGC
2)It does not support plural parameters.

Therefore I want to change a process check.

Regards,
Tomo

2011$BG/(B11$B7n(B17$BF|(B14:51 nozawat <nozawat [at] gmail>:
> Hi Dejan
>
> When I set CATALINA_OPTS from the outside, it is as follows.
>
> 1)It is set CATALINA_OPTS by crm-configure.
> 2)It is set CATALINA_OPTS by external file(setenv.sh)
> ->setenv.sh is called from run.sh
> ->In this case I set -Dname by all means.
>
> In this case it causes a mistake.
> Therefore I think that I should not use CATALINA_OPTS by a process
> monitoring when I consider outside setting.
>
> Does not it become a reason to change the process monitoring?
>
> Regards,
> Tomo
>
> 2011/11/11 nozawat <nozawat [at] gmail>:
>> Hi Dejan
>>
>>>What is overwritten?Which environment variable do you refer to?
>> It is CATALINA_OPTS.
>>
>> When CATALINA_OPTS is set from the outside, a right process check is
>> not possible.
>> It occurs at following time.
>> 1.-Dname is not set(Outside setting).
>> 2.When -Dname is different.
>> 3.When setting of CATALINA_OPTS is different by cib and outside setting
>>
>> When I set CATALINA_OPTS in the tomcat-ra from the outside, there is
>> the same definition to two places(cib and setenv.sh),and When I set
>> -Dname definitely.
>> It moves. However, is not it confusing?
>>
>> Regards,
>> Tomo
>>
>> 2011/11/10 Dejan Muhamedagic <dejan [at] suse>:
>>> On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote:
>>>> Hi Dejan
>>>>
>>>> > Are we sure that the pid file is _always_ going to exist and
>>>> > contain the PID?
>>>> I believe that PID file exists, and I include pid.
>>>> BTW, it is the next sentence to be important by this change.
>>>>
>>>> > What's wrong with setting the tomcat_name parameter when it's really
>>>> > needed (i.e. it is different from the default "tomcat")?
>>>> For example, it may not move when CATALINA_OPTS is catalina.sh and is
>>>> overwritten.
>>>> It is to move without a problem even if an environment variable is set
>>>> from the outside that I need.
>>>
>>> I'm sorry, but I don't understand much of this. Could you please
>>> rephrase. "may not move", what may (not) move? What is
>>> overwritten? Which environment variable do you refer to?
>>>
>>> Cheers,
>>>
>>> Dejan
>>>
>>>> Regards,
>>>> Tomo
>>>>
>>>> 2011/11/4 Dejan Muhamedagic <dejan [at] suse>:
>>>> > Hi,
>>>> >
>>>> > On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
>>>> >> Hi Dejan
>>>> >>
>>>> >> Sorry,I got a wrong attached file.
>>>> >> I send a right file.
>>>> >
>>>> > Are we sure that the pid file is _always_ going to exist and
>>>> > contain the PID? What's wrong with setting the tomcat_name
>>>> > parameter when it's really needed (i.e. it is different from the
>>>> > default "tomcat")?
>>>> >
>>>> > If you don't produce good arguments, this change looks
>>>> > superfluous to me.
>>>> >
>>>> > Cheers,
>>>> >
>>>> > Dejan
>>>> >
>>>> >> Regards,
>>>> >> Tomo
>>>> >>
>>>> >> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
>>>> >> > Hi,
>>>> >> >
>>>> >> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
>>>> >> >> Hi
>>>> >> >>
>>>> >> >> I changed the method of the process check in tomcat-ra.
>>>> >> >> SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
>>>> >> >
>>>> >> > This is the same one like the other to remove the pid file.
>>>> >> > Wrong patch attached?
>>>> >> >
>>>> >> > Thanks,
>>>> >> >
>>>> >> > Dejan
>>>> >> >
>>>> >> >> Regards,
>>>> >> >> Tomo
>>>> >> >
>>>> >> >
>>>> >> >> _______________________________________________________
>>>> >> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> >> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> >> >> Home Page: http://linux-ha.org/
>>>> >> >
>>>> >> > _______________________________________________________
>>>> >> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> >> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> >> > Home Page: http://linux-ha.org/
>>>> >> >
>>>> >
>>>> >
>>>> >> _______________________________________________________
>>>> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> >> Home Page: http://linux-ha.org/
>>>> >
>>>> > _______________________________________________________
>>>> > Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> > Home Page: http://linux-ha.org/
>>>> >
>>>> _______________________________________________________
>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> Home Page: http://linux-ha.org/
>>> _______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>>>
>>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


dejan at suse

Jan 31, 2012, 4:13 AM

Post #10 of 11 (662 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

Hi,

On Mon, Dec 19, 2011 at 05:20:53PM +0900, nozawat wrote:
> Hi Dejan
>
> I have two reasons to change the process check.
> 1)There is the pattern that pgrep does not work by contents to set in
> CATALINA_OPTS. For example, they are as follows.
> e.g.)-XX:+UseConcMarkSweepGC
> 2)It does not support plural parameters.
>
> Therefore I want to change a process check.

OK, I understand now :)

Patch applied (finally). Many thanks!

Cheers,

Dejan

> Regards,
> Tomo
>
> 2011年11月17日14:51 nozawat <nozawat [at] gmail>:
> > Hi Dejan
> >
> > When I set CATALINA_OPTS from the outside, it is as follows.
> >
> > 1)It is set CATALINA_OPTS by crm-configure.
> > 2)It is set CATALINA_OPTS by external file(setenv.sh)
> > ->setenv.sh is called from run.sh
> > ->In this case I set -Dname by all means.
> >
> > In this case it causes a mistake.
> > Therefore I think that I should not use CATALINA_OPTS by a process
> > monitoring when I consider outside setting.
> >
> > Does not it become a reason to change the process monitoring?
> >
> > Regards,
> > Tomo
> >
> > 2011/11/11 nozawat <nozawat [at] gmail>:
> >> Hi Dejan
> >>
> >>>What is overwritten?Which environment variable do you refer to?
> >> It is CATALINA_OPTS.
> >>
> >> When CATALINA_OPTS is set from the outside, a right process check is
> >> not possible.
> >> It occurs at following time.
> >> 1.-Dname is not set(Outside setting).
> >> 2.When -Dname is different.
> >> 3.When setting of CATALINA_OPTS is different by cib and outside setting
> >>
> >> When I set CATALINA_OPTS in the tomcat-ra from the outside, there is
> >> the same definition to two places(cib and setenv.sh),and When I set
> >> -Dname definitely.
> >> It moves. However, is not it confusing?
> >>
> >> Regards,
> >> Tomo
> >>
> >> 2011/11/10 Dejan Muhamedagic <dejan [at] suse>:
> >>> On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote:
> >>>> Hi Dejan
> >>>>
> >>>> > Are we sure that the pid file is _always_ going to exist and
> >>>> > contain the PID?
> >>>> I believe that PID file exists, and I include pid.
> >>>> BTW, it is the next sentence to be important by this change.
> >>>>
> >>>> > What's wrong with setting the tomcat_name parameter when it's really
> >>>> > needed (i.e. it is different from the default "tomcat")?
> >>>> For example, it may not move when CATALINA_OPTS is catalina.sh and is
> >>>> overwritten.
> >>>> It is to move without a problem even if an environment variable is set
> >>>> from the outside that I need.
> >>>
> >>> I'm sorry, but I don't understand much of this. Could you please
> >>> rephrase. "may not move", what may (not) move? What is
> >>> overwritten? Which environment variable do you refer to?
> >>>
> >>> Cheers,
> >>>
> >>> Dejan
> >>>
> >>>> Regards,
> >>>> Tomo
> >>>>
> >>>> 2011/11/4 Dejan Muhamedagic <dejan [at] suse>:
> >>>> > Hi,
> >>>> >
> >>>> > On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote:
> >>>> >> Hi Dejan
> >>>> >>
> >>>> >> Sorry,I got a wrong attached file.
> >>>> >> I send a right file.
> >>>> >
> >>>> > Are we sure that the pid file is _always_ going to exist and
> >>>> > contain the PID? What's wrong with setting the tomcat_name
> >>>> > parameter when it's really needed (i.e. it is different from the
> >>>> > default "tomcat")?
> >>>> >
> >>>> > If you don't produce good arguments, this change looks
> >>>> > superfluous to me.
> >>>> >
> >>>> > Cheers,
> >>>> >
> >>>> > Dejan
> >>>> >
> >>>> >> Regards,
> >>>> >> Tomo
> >>>> >>
> >>>> >> 2011/11/1 Dejan Muhamedagic <dejan [at] suse>:
> >>>> >> > Hi,
> >>>> >> >
> >>>> >> > On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote:
> >>>> >> >> Hi
> >>>> >> >>
> >>>> >> >> I changed the method of the process check in tomcat-ra.
> >>>> >> >> SEARCH_STR does not function when I set tomcat parameter in catalina.sh.
> >>>> >> >
> >>>> >> > This is the same one like the other to remove the pid file.
> >>>> >> > Wrong patch attached?
> >>>> >> >
> >>>> >> > Thanks,
> >>>> >> >
> >>>> >> > Dejan
> >>>> >> >
> >>>> >> >> Regards,
> >>>> >> >> Tomo
> >>>> >> >
> >>>> >> >
> >>>> >> >> _______________________________________________________
> >>>> >> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >>>> >> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>>> >> >> Home Page: http://linux-ha.org/
> >>>> >> >
> >>>> >> > _______________________________________________________
> >>>> >> > Linux-HA-Dev: Linux-HA-Dev [at] lists
> >>>> >> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>>> >> > Home Page: http://linux-ha.org/
> >>>> >> >
> >>>> >
> >>>> >
> >>>> >> _______________________________________________________
> >>>> >> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >>>> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>>> >> Home Page: http://linux-ha.org/
> >>>> >
> >>>> > _______________________________________________________
> >>>> > Linux-HA-Dev: Linux-HA-Dev [at] lists
> >>>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>>> > Home Page: http://linux-ha.org/
> >>>> >
> >>>> _______________________________________________________
> >>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>>> Home Page: http://linux-ha.org/
> >>> _______________________________________________________
> >>> Linux-HA-Dev: Linux-HA-Dev [at] lists
> >>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>> Home Page: http://linux-ha.org/
> >>>
> >>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


dgersic at niu

Jan 31, 2012, 1:17 PM

Post #11 of 11 (657 views)
Permalink
Re: change of process check in tomcat-ra [In reply to]

A minor suggestion on the tomcat RA. It uses "wget -O ..." to verify that tomcat is running. If the URL is an https://... type, and wget can't verify the certificate being used by the server, it errors out. Using "wget --no-check-certificate -O ..." would be better, given that this is only being used to see if the server is responding.




_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.