Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-04-06 Thread Alain.Moulle
Done : Bug 2579 
 has 
been added to the database
Thanks
Alain

Andrew Beekhof a écrit :
> On Fri, Mar 25, 2011 at 2:07 PM, Alain.Moulle  wrote:
>   
>> Hi,
>> I tried but it does not work :
>> crm_resource -r resname -p target-role -v started
>> because it adds a target-role=started as params
>> whereis I already have a meta target-role=Stopped
>> so resource does not start.
>> So I tried :
>> crm_resource -r resname -m -p target-role -v started
>> then resource starts successfully.
>> But with a loop:
>> for i in {1..20}; do echo resname$i ; crm_resource -r resname$i -m -p
>> target-role -v started; done
>> The first one is started immediately, and the 19th other ones are
>> started ~20s after the first one
>> but all in one salvo.
>> So it seems to be quite the same behavior as successive "crm resource
>> start resname$i" commands.
>> First command is taken in account immediately, then there is a delay
>> perhaps before pooling eventuals
>> other crm commands, but as during this delay , my loop has already sent
>> 19 commands, these are
>> taken in account in one shot when the new polling occurs.
>>
>> Meaning, that manually, if you wait that the expected result of your crm
>> command is displayed on crm_mon,
>> before sending the second one etc. there is always this 10 to 20s
>> latency between each commands.
>> (Same behavior inside scripts if the script waits for the command to be
>> really completed by testing ...)
>>
>> Hope my description is clear enough ...
>> 
>
> Yes.  Looks like something in core pacemaker.
> Could you file a bug for this and include the output of your above
> testcase but with - added to the crm_resource command line please?
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>   

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-04-06 Thread Andrew Beekhof
On Fri, Mar 25, 2011 at 2:07 PM, Alain.Moulle  wrote:
> Hi,
> I tried but it does not work :
> crm_resource -r resname -p target-role -v started
> because it adds a target-role=started as params
> whereis I already have a meta target-role=Stopped
> so resource does not start.
> So I tried :
> crm_resource -r resname -m -p target-role -v started
> then resource starts successfully.
> But with a loop:
> for i in {1..20}; do echo resname$i ; crm_resource -r resname$i -m -p
> target-role -v started; done
> The first one is started immediately, and the 19th other ones are
> started ~20s after the first one
> but all in one salvo.
> So it seems to be quite the same behavior as successive "crm resource
> start resname$i" commands.
> First command is taken in account immediately, then there is a delay
> perhaps before pooling eventuals
> other crm commands, but as during this delay , my loop has already sent
> 19 commands, these are
> taken in account in one shot when the new polling occurs.
>
> Meaning, that manually, if you wait that the expected result of your crm
> command is displayed on crm_mon,
> before sending the second one etc. there is always this 10 to 20s
> latency between each commands.
> (Same behavior inside scripts if the script waits for the command to be
> really completed by testing ...)
>
> Hope my description is clear enough ...

Yes.  Looks like something in core pacemaker.
Could you file a bug for this and include the output of your above
testcase but with - added to the crm_resource command line please?
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-25 Thread Alain.Moulle
Hi,
I tried but it does not work :
crm_resource -r resname -p target-role -v started
because it adds a target-role=started as params
whereis I already have a meta target-role=Stopped
so resource does not start.
So I tried :
crm_resource -r resname -m -p target-role -v started
then resource starts successfully.
But with a loop:
for i in {1..20}; do echo resname$i ; crm_resource -r resname$i -m -p 
target-role -v started; done
The first one is started immediately, and the 19th other ones are 
started ~20s after the first one
but all in one salvo.
So it seems to be quite the same behavior as successive "crm resource 
start resname$i" commands.
First command is taken in account immediately, then there is a delay 
perhaps before pooling eventuals
other crm commands, but as during this delay , my loop has already sent 
19 commands, these are
taken in account in one shot when the new polling occurs.

Meaning, that manually, if you wait that the expected result of your crm 
command is displayed on crm_mon,
before sending the second one etc. there is always this 10 to 20s 
latency between each commands.
(Same behavior inside scripts if the script waits for the command to be 
really completed by testing ...)

Hope my description is clear enough ...

Thanks
Alain

Dejan Muhamedagic a e'crit:
> On Thu, Mar 10, 2011 at 03:18:30PM +0100, Lars Ellenberg wrote:
>   
>> On Thu, Mar 10, 2011 at 02:49:01PM +0100, Dejan Muhamedagic wrote:
>> 
>>> Hi,
>>>
>>> On Wed, Mar 09, 2011 at 10:02:01AM +0100, Alain.Moulle wrote:
>>>   
 Hi Dejan

 I tried to reproduce the latency pb between commands, bt with only
 some Dummy resources :
  Resource Group: group-dummy1
  resname1   (ocf::pacemaker:Dummy): Started chili2
  resname2   (ocf::pacemaker:Dummy): Started chili2
  resname3   (ocf::pacemaker:Dummy): Started chili2
  resname4   (ocf::pacemaker:Dummy): Started chili2
  Resource Group: group-dummy2
  resname5   (ocf::pacemaker:Dummy): Started chili2
  resname6   (ocf::pacemaker:Dummy): Started chili2


 and in fact when using crm to start /stop for example :
 crm resource start group-dummy1
 (this one is instantaneously taken in account)
 then just after the first one, I do : crm resource start group-dummy2
 there is a latency of 10 to 14 s before the resource
 is displayed "started" via crm_mon
 
>>> Normally, pacemaker reacts as fast as it can. The explanation
>>> must be in the logs.
>>>   
>> Instead of "crm resource x start/stop", try
>>   crm_resource -r x -p target_role -v started
>>   crm_resource -r x -p target_role -v stopped
>>
>> iirc, crm sends a cib replace, which causes re-election of the DC,
>> which may or may not take some time.
>> 
>
> Hmm, that should've been fixed, sometimes last year. I think
> that both 1.0.10 and 1.1.5 contain the fix.
>
>   
>> crm_resource will send a cib diff update, no re-election will be done,
>> and it just goes directly -> policy engine -> transition engine.
>>
>> May or may not help ;-)
>> 
>
> Yes, it's worth a try.
>
> Thanks,
>
> Dejan
>
>   
>> -- 
>> : Lars Ellenberg
>> : LINBIT | Your Way to High Availability
>> : DRBD/HA support and consulting http://www.linbit.com
>> ___
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>   

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-14 Thread Alain.Moulle
Hi,

Thanks, but in fact, I give these commands as examples for the latency 
problem,
but in reality, this latency leads to problems for me on "crm configure 
(primitive, group, etc.)" commands,
as we have the same latency problems with these crm configure commands.

Alain

> On Thu, Mar 10, 2011 at 02:49:01PM +0100, Dejan Muhamedagic wrote:
>   
>> Hi,
>>
>> On Wed, Mar 09, 2011 at 10:02:01AM +0100, Alain.Moulle wrote:
>> 
>>> Hi Dejan
>>>
>>> I tried to reproduce the latency pb between commands, bt with only
>>> some Dummy resources :
>>>  Resource Group: group-dummy1
>>>  resname1   (ocf::pacemaker:Dummy): Started chili2
>>>  resname2   (ocf::pacemaker:Dummy): Started chili2
>>>  resname3   (ocf::pacemaker:Dummy): Started chili2
>>>  resname4   (ocf::pacemaker:Dummy): Started chili2
>>>  Resource Group: group-dummy2
>>>  resname5   (ocf::pacemaker:Dummy): Started chili2
>>>  resname6   (ocf::pacemaker:Dummy): Started chili2
>>>
>>>
>>> and in fact when using crm to start /stop for example :
>>> crm resource start group-dummy1
>>> (this one is instantaneously taken in account)
>>> then just after the first one, I do : crm resource start group-dummy2
>>> there is a latency of 10 to 14 s before the resource
>>> is displayed "started" via crm_mon
>>>   
>> Normally, pacemaker reacts as fast as it can. The explanation
>> must be in the logs.
>> 
>
> Instead of "crm resource x start/stop", try
>   crm_resource -r x -p target_role -v started
>   crm_resource -r x -p target_role -v stopped
>
> iirc, crm sends a cib replace, which causes re-election of the DC,
> which may or may not take some time.
>
> crm_resource will send a cib diff update, no re-election will be done,
> and it just goes directly -> policy engine -> transition engine.
>
> May or may not help ;-)
>
>   

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-10 Thread Dejan Muhamedagic
On Thu, Mar 10, 2011 at 03:18:30PM +0100, Lars Ellenberg wrote:
> On Thu, Mar 10, 2011 at 02:49:01PM +0100, Dejan Muhamedagic wrote:
> > Hi,
> > 
> > On Wed, Mar 09, 2011 at 10:02:01AM +0100, Alain.Moulle wrote:
> > > Hi Dejan
> > > 
> > > I tried to reproduce the latency pb between commands, bt with only
> > > some Dummy resources :
> > >  Resource Group: group-dummy1
> > >  resname1   (ocf::pacemaker:Dummy): Started chili2
> > >  resname2   (ocf::pacemaker:Dummy): Started chili2
> > >  resname3   (ocf::pacemaker:Dummy): Started chili2
> > >  resname4   (ocf::pacemaker:Dummy): Started chili2
> > >  Resource Group: group-dummy2
> > >  resname5   (ocf::pacemaker:Dummy): Started chili2
> > >  resname6   (ocf::pacemaker:Dummy): Started chili2
> > > 
> > > 
> > > and in fact when using crm to start /stop for example :
> > > crm resource start group-dummy1
> > > (this one is instantaneously taken in account)
> > > then just after the first one, I do : crm resource start group-dummy2
> > > there is a latency of 10 to 14 s before the resource
> > > is displayed "started" via crm_mon
> > 
> > Normally, pacemaker reacts as fast as it can. The explanation
> > must be in the logs.
> 
> Instead of "crm resource x start/stop", try
>   crm_resource -r x -p target_role -v started
>   crm_resource -r x -p target_role -v stopped
> 
> iirc, crm sends a cib replace, which causes re-election of the DC,
> which may or may not take some time.

Hmm, that should've been fixed, sometimes last year. I think
that both 1.0.10 and 1.1.5 contain the fix.

> crm_resource will send a cib diff update, no re-election will be done,
> and it just goes directly -> policy engine -> transition engine.
> 
> May or may not help ;-)

Yes, it's worth a try.

Thanks,

Dejan

> -- 
> : Lars Ellenberg
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting http://www.linbit.com
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-10 Thread Lars Ellenberg
On Thu, Mar 10, 2011 at 02:49:01PM +0100, Dejan Muhamedagic wrote:
> Hi,
> 
> On Wed, Mar 09, 2011 at 10:02:01AM +0100, Alain.Moulle wrote:
> > Hi Dejan
> > 
> > I tried to reproduce the latency pb between commands, bt with only
> > some Dummy resources :
> >  Resource Group: group-dummy1
> >  resname1   (ocf::pacemaker:Dummy): Started chili2
> >  resname2   (ocf::pacemaker:Dummy): Started chili2
> >  resname3   (ocf::pacemaker:Dummy): Started chili2
> >  resname4   (ocf::pacemaker:Dummy): Started chili2
> >  Resource Group: group-dummy2
> >  resname5   (ocf::pacemaker:Dummy): Started chili2
> >  resname6   (ocf::pacemaker:Dummy): Started chili2
> > 
> > 
> > and in fact when using crm to start /stop for example :
> > crm resource start group-dummy1
> > (this one is instantaneously taken in account)
> > then just after the first one, I do : crm resource start group-dummy2
> > there is a latency of 10 to 14 s before the resource
> > is displayed "started" via crm_mon
> 
> Normally, pacemaker reacts as fast as it can. The explanation
> must be in the logs.

Instead of "crm resource x start/stop", try
  crm_resource -r x -p target_role -v started
  crm_resource -r x -p target_role -v stopped

iirc, crm sends a cib replace, which causes re-election of the DC,
which may or may not take some time.

crm_resource will send a cib diff update, no re-election will be done,
and it just goes directly -> policy engine -> transition engine.

May or may not help ;-)

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-10 Thread Dejan Muhamedagic
Hi,

On Wed, Mar 09, 2011 at 10:02:01AM +0100, Alain.Moulle wrote:
> Hi Dejan
> 
> I tried to reproduce the latency pb between commands, bt with only
> some Dummy resources :
>  Resource Group: group-dummy1
>  resname1   (ocf::pacemaker:Dummy): Started chili2
>  resname2   (ocf::pacemaker:Dummy): Started chili2
>  resname3   (ocf::pacemaker:Dummy): Started chili2
>  resname4   (ocf::pacemaker:Dummy): Started chili2
>  Resource Group: group-dummy2
>  resname5   (ocf::pacemaker:Dummy): Started chili2
>  resname6   (ocf::pacemaker:Dummy): Started chili2
> 
> 
> and in fact when using crm to start /stop for example :
> crm resource start group-dummy1
> (this one is instantaneously taken in account)
> then just after the first one, I do : crm resource start group-dummy2
> there is a latency of 10 to 14 s before the resource
> is displayed "started" via crm_mon

Normally, pacemaker reacts as fast as it can. The explanation
must be in the logs.

Thanks,

Dejan

> So that is the basic cause of my latency problem when I
> execute all the needed crm commands in my scripts to
> address many HA clusters from a central management node.
> 
> I know that I can gather as much as possible crm commands
> in a file on remote node and ask crm to take the file as input,
> but within my scripts, I can't do that for all crm commands,
> so would it be possible to reduce these 10 to 14s via a pacemaker
> parameter tuning ?
> 
> Thanks
> Alain
> 
> Dejan Muhamedagic a écrit :
> > On Tue, Mar 01, 2011 at 04:29:26PM +0100, Alain.Moulle wrote:
> >   
> >> Hi Dejan,
> >> whatever command , i.e a crm start on a resource, an then a start or on 
> >> another
> >> resource, the first one is instaneously taken in account, the second one 
> >> takes
> >> around 45/50s . Or a start on a resource and just after the start, a crm 
> >> resource
> >> stop on the same resource, the command returns, but crm_mon displays the
> >> resource stopped 45/50s after the command.
> >> 
> >
> > No way to figure out what's going on without the logs and your
> > configuration. Please open a bugzilla with hb_report attached.
> >
> > Thanks,
> >
> > Dejan
> >
> >   
> >> Alain
> >> 
> >>> Hi,
> >>>
> >>> On Tue, Mar 01, 2011 at 03:15:10PM +0100, Alain.Moulle wrote:
> >>>   
> >>>   
>  Hi,
> 
>  Suppose we execute a crm command on a resource, it is quickly taken in
>  account.
>  Now, we execute a new crm command, there is a delay of around 40 to 60s
>  before this new command is taken in account in Pacemaker.
> 
>  I wonder why this delay?
>  
>  
> >>> /me too. Where does it occur (the crm shell waits or something
> >>> else)? Which exact commands, logs.
> >>>
> >>> Cheers,
> >>>
> >>> Dejan
> >>>
> >>>   
> >>>   
>  And if it is possible to reduce it so that all commands could be taken in
>  account in a few seconds ?
> 
>  Thanks a lot
>  Alain
>  ___
>  Linux-HA mailing list
>  Linux-HA@lists.linux-ha.org
>  http://lists.linux-ha.org/mailman/listinfo/linux-ha
>  See also: http://linux-ha.org/ReportingProblems
>  
>  
> >>> ___
> >>> Linux-HA mailing list
> >>> Linux-HA@lists.linux-ha.org
> >>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >>> See also: http://linux-ha.org/ReportingProblems
> >>>
> >>>
> >>>   
> >>>   
> >> ___
> >> Linux-HA mailing list
> >> Linux-HA@lists.linux-ha.org
> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >> See also: http://linux-ha.org/ReportingProblems
> >> 
> > ___
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> >
> >   
> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-09 Thread Alain.Moulle
Hi Dejan

I tried to reproduce the latency pb between commands, bt with only
some Dummy resources :
 Resource Group: group-dummy1
 resname1   (ocf::pacemaker:Dummy): Started chili2
 resname2   (ocf::pacemaker:Dummy): Started chili2
 resname3   (ocf::pacemaker:Dummy): Started chili2
 resname4   (ocf::pacemaker:Dummy): Started chili2
 Resource Group: group-dummy2
 resname5   (ocf::pacemaker:Dummy): Started chili2
 resname6   (ocf::pacemaker:Dummy): Started chili2


and in fact when using crm to start /stop for example :
crm resource start group-dummy1
(this one is instantaneously taken in account)
then just after the first one, I do : crm resource start group-dummy2
there is a latency of 10 to 14 s before the resource
is displayed "started" via crm_mon

So that is the basic cause of my latency problem when I
execute all the needed crm commands in my scripts to
address many HA clusters from a central management node.

I know that I can gather as much as possible crm commands
in a file on remote node and ask crm to take the file as input,
but within my scripts, I can't do that for all crm commands,
so would it be possible to reduce these 10 to 14s via a pacemaker
parameter tuning ?

Thanks
Alain

Dejan Muhamedagic a écrit :
> On Tue, Mar 01, 2011 at 04:29:26PM +0100, Alain.Moulle wrote:
>   
>> Hi Dejan,
>> whatever command , i.e a crm start on a resource, an then a start or on 
>> another
>> resource, the first one is instaneously taken in account, the second one 
>> takes
>> around 45/50s . Or a start on a resource and just after the start, a crm 
>> resource
>> stop on the same resource, the command returns, but crm_mon displays the
>> resource stopped 45/50s after the command.
>> 
>
> No way to figure out what's going on without the logs and your
> configuration. Please open a bugzilla with hb_report attached.
>
> Thanks,
>
> Dejan
>
>   
>> Alain
>> 
>>> Hi,
>>>
>>> On Tue, Mar 01, 2011 at 03:15:10PM +0100, Alain.Moulle wrote:
>>>   
>>>   
 Hi,

 Suppose we execute a crm command on a resource, it is quickly taken in
 account.
 Now, we execute a new crm command, there is a delay of around 40 to 60s
 before this new command is taken in account in Pacemaker.

 I wonder why this delay?
 
 
>>> /me too. Where does it occur (the crm shell waits or something
>>> else)? Which exact commands, logs.
>>>
>>> Cheers,
>>>
>>> Dejan
>>>
>>>   
>>>   
 And if it is possible to reduce it so that all commands could be taken in
 account in a few seconds ?

 Thanks a lot
 Alain
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
 
 
>>> ___
>>> Linux-HA mailing list
>>> Linux-HA@lists.linux-ha.org
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> See also: http://linux-ha.org/ReportingProblems
>>>
>>>
>>>   
>>>   
>> ___
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>   

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-02 Thread Alain.Moulle
Hi Dejan,
OK I'll do it as soon as possible.
But I have this behavior since a long time ... I think since I switch from
fedora12 to rhel6 ... perhaps ...
Alain
Dejan Muhamedagic a écrit :
> On Tue, Mar 01, 2011 at 04:29:26PM +0100, Alain.Moulle wrote:
>   
>> Hi Dejan,
>> whatever command , i.e a crm start on a resource, an then a start or on 
>> another
>> resource, the first one is instaneously taken in account, the second one 
>> takes
>> around 45/50s . Or a start on a resource and just after the start, a crm 
>> resource
>> stop on the same resource, the command returns, but crm_mon displays the
>> resource stopped 45/50s after the command.
>> 
>
> No way to figure out what's going on without the logs and your
> configuration. Please open a bugzilla with hb_report attached.
>
> Thanks,
>
> Dejan
>
>   
>> Alain
>> 
>>> Hi,
>>>
>>> On Tue, Mar 01, 2011 at 03:15:10PM +0100, Alain.Moulle wrote:
>>>   
>>>   
 Hi,

 Suppose we execute a crm command on a resource, it is quickly taken in
 account.
 Now, we execute a new crm command, there is a delay of around 40 to 60s
 before this new command is taken in account in Pacemaker.

 I wonder why this delay?
 
 
>>> /me too. Where does it occur (the crm shell waits or something
>>> else)? Which exact commands, logs.
>>>
>>> Cheers,
>>>
>>> Dejan
>>>
>>>   
>>>   
 And if it is possible to reduce it so that all commands could be taken in
 account in a few seconds ?

 Thanks a lot
 Alain
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
 
 
>>> ___
>>> Linux-HA mailing list
>>> Linux-HA@lists.linux-ha.org
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> See also: http://linux-ha.org/ReportingProblems
>>>
>>>
>>>   
>>>   
>> ___
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>   

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-01 Thread Dejan Muhamedagic
On Tue, Mar 01, 2011 at 04:29:26PM +0100, Alain.Moulle wrote:
> Hi Dejan,
> whatever command , i.e a crm start on a resource, an then a start or on 
> another
> resource, the first one is instaneously taken in account, the second one 
> takes
> around 45/50s . Or a start on a resource and just after the start, a crm 
> resource
> stop on the same resource, the command returns, but crm_mon displays the
> resource stopped 45/50s after the command.

No way to figure out what's going on without the logs and your
configuration. Please open a bugzilla with hb_report attached.

Thanks,

Dejan

> Alain
> > Hi,
> >
> > On Tue, Mar 01, 2011 at 03:15:10PM +0100, Alain.Moulle wrote:
> >   
> >> Hi,
> >>
> >> Suppose we execute a crm command on a resource, it is quickly taken in
> >> account.
> >> Now, we execute a new crm command, there is a delay of around 40 to 60s
> >> before this new command is taken in account in Pacemaker.
> >>
> >> I wonder why this delay?
> >> 
> >
> > /me too. Where does it occur (the crm shell waits or something
> > else)? Which exact commands, logs.
> >
> > Cheers,
> >
> > Dejan
> >
> >   
> >> And if it is possible to reduce it so that all commands could be taken in
> >> account in a few seconds ?
> >>
> >> Thanks a lot
> >> Alain
> >> ___
> >> Linux-HA mailing list
> >> Linux-HA@lists.linux-ha.org
> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >> See also: http://linux-ha.org/ReportingProblems
> >> 
> > ___
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> >
> >   
> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-01 Thread Alain.Moulle
Hi Dejan,
whatever command , i.e a crm start on a resource, an then a start or on 
another
resource, the first one is instaneously taken in account, the second one 
takes
around 45/50s . Or a start on a resource and just after the start, a crm 
resource
stop on the same resource, the command returns, but crm_mon displays the
resource stopped 45/50s after the command.
Alain
> Hi,
>
> On Tue, Mar 01, 2011 at 03:15:10PM +0100, Alain.Moulle wrote:
>   
>> Hi,
>>
>> Suppose we execute a crm command on a resource, it is quickly taken in
>> account.
>> Now, we execute a new crm command, there is a delay of around 40 to 60s
>> before this new command is taken in account in Pacemaker.
>>
>> I wonder why this delay?
>> 
>
> /me too. Where does it occur (the crm shell waits or something
> else)? Which exact commands, logs.
>
> Cheers,
>
> Dejan
>
>   
>> And if it is possible to reduce it so that all commands could be taken in
>> account in a few seconds ?
>>
>> Thanks a lot
>> Alain
>> ___
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>   

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-01 Thread Dejan Muhamedagic
Hi,

On Tue, Mar 01, 2011 at 03:15:10PM +0100, Alain.Moulle wrote:
> Hi,
> 
> Suppose we execute a crm command on a resource, it is quickly taken in
> account.
> Now, we execute a new crm command, there is a delay of around 40 to 60s
> before this new command is taken in account in Pacemaker.
> 
> I wonder why this delay?

/me too. Where does it occur (the crm shell waits or something
else)? Which exact commands, logs.

Cheers,

Dejan

> And if it is possible to reduce it so that all commands could be taken in
> account in a few seconds ?
> 
> Thanks a lot
> Alain
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


[Linux-HA] crm commands : how to reduce the delay between two commands

2011-03-01 Thread Alain.Moulle
Hi,

Suppose we execute a crm command on a resource, it is quickly taken in
account.
Now, we execute a new crm command, there is a delay of around 40 to 60s
before this new command is taken in account in Pacemaker.

I wonder why this delay?

And if it is possible to reduce it so that all commands could be taken in
account in a few seconds ?

Thanks a lot
Alain
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems