Re: [ClusterLabs] ?==?utf-8?q? Limit of concurrent ressources to start?

2018-06-13 Thread Michael Schwartzkopff
Am 13.06.2018 um 16:18 schrieb Ken Gaillot:
> On Wed, 2018-06-13 at 14:25 +0200, Michael Schwartzkopff wrote:
>> On Wednesday, June 13, 2018 10:01 CEST, "Michael Schwartzkopff" > ys4.de> wrote: 
>>  
>>> Hi,
>>>
>>> we have a cluster with several IP addresses that can start after an
>>> other resource. In the logs we see that only 2 IP addresses start
>>> in parallel, not all. Can anyone please explain, why not all IP
>>> addresses start in parallel?
>>>
>>> Config:
>>> primitive resProc ocf:myprovider:Proc
>>> (ten times:) primitive resIP1 ocf:heartbeat:IPaddr2 params
>>> ip="192.168.100.1"
>>> order ord_Proc_IP Mandatory: resProc ( resIP1 resIP2 ... )
>>> collocation col_IP_Proc inf: (resIP1 resIP2 ...) resProc
>>>
>>> No batch-limit in properties.
>>> Any ideas? Thanks.
>>>
>>> Michael
> Each node has a limit of how many jobs it can execute in parallel. In
> order of most preferred to least, it will be:
>
> * The value of the (undocumented) PCMK_node_action_limit environment
> variable on that node (no limit if not existing)
>
> * The value of the (also undocumented) node-action-limit cluster
> property (defaulting to 0 meaning no limit)
>
> * Twice the node's number of CPU cores (as reported by /proc/stat)
>
> Also, the cluster will auto-calculate a cluster-wide batch-limit if
> high load is observed on any node.
>
> So, you could mostly override throttling by setting a high node-action-
> limit.
>
>> Hi,
>>
>> additional remark:
>>
>> With some tweaks I made my cluster start two resources (i.e. IP1 and
>> IP2) at the same time. But it takes about 4 seconds to that the
>> cluster starts the next resources (i.e. IP3 and IP4).
>>
>> Did anybody see this behaviour before?
>>
>> Why does my cluster do not start all "parallel" resources together?
>>
>> Michael.
> Ken Gaillot 

Thanks for this clarification.

Mit freundlichen Grüßen,

-- 

[*] sys4 AG
 
https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein




signature.asc
Description: OpenPGP digital signature
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] ?==?utf-8?q? Limit of concurrent ressources to start?

2018-06-13 Thread Ken Gaillot
On Wed, 2018-06-13 at 14:25 +0200, Michael Schwartzkopff wrote:
> On Wednesday, June 13, 2018 10:01 CEST, "Michael Schwartzkopff"  ys4.de> wrote: 
>  
> > Hi,
> > 
> > we have a cluster with several IP addresses that can start after an
> > other resource. In the logs we see that only 2 IP addresses start
> > in parallel, not all. Can anyone please explain, why not all IP
> > addresses start in parallel?
> > 
> > Config:
> > primitive resProc ocf:myprovider:Proc
> > (ten times:) primitive resIP1 ocf:heartbeat:IPaddr2 params
> > ip="192.168.100.1"
> > order ord_Proc_IP Mandatory: resProc ( resIP1 resIP2 ... )
> > collocation col_IP_Proc inf: (resIP1 resIP2 ...) resProc
> > 
> > No batch-limit in properties.
> > Any ideas? Thanks.
> > 
> > Michael

Each node has a limit of how many jobs it can execute in parallel. In
order of most preferred to least, it will be:

* The value of the (undocumented) PCMK_node_action_limit environment
variable on that node (no limit if not existing)

* The value of the (also undocumented) node-action-limit cluster
property (defaulting to 0 meaning no limit)

* Twice the node's number of CPU cores (as reported by /proc/stat)

Also, the cluster will auto-calculate a cluster-wide batch-limit if
high load is observed on any node.

So, you could mostly override throttling by setting a high node-action-
limit.

> Hi,
> 
> additional remark:
> 
> With some tweaks I made my cluster start two resources (i.e. IP1 and
> IP2) at the same time. But it takes about 4 seconds to that the
> cluster starts the next resources (i.e. IP3 and IP4).
> 
> Did anybody see this behaviour before?
> 
> Why does my cluster do not start all "parallel" resources together?
> 
> Michael.

Ken Gaillot 
-- 
Ken Gaillot 
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] ?==?utf-8?q? Limit of concurrent ressources to start?

2018-06-13 Thread Michael Schwartzkopff
On Wednesday, June 13, 2018 10:01 CEST, "Michael Schwartzkopff"  
wrote: 
 
> Hi,
> 
> we have a cluster with several IP addresses that can start after an other 
> resource. In the logs we see that only 2 IP addresses start in parallel, not 
> all. Can anyone please explain, why not all IP addresses start in parallel?
> 
> Config:
> primitive resProc ocf:myprovider:Proc
> (ten times:) primitive resIP1 ocf:heartbeat:IPaddr2 params ip="192.168.100.1"
> order ord_Proc_IP Mandatory: resProc ( resIP1 resIP2 ... )
> collocation col_IP_Proc inf: (resIP1 resIP2 ...) resProc
> 
> No batch-limit in properties.
> Any ideas? Thanks.
> 
> Michael

Hi,

additional remark:

With some tweaks I made my cluster start two resources (i.e. IP1 and IP2) at 
the same time. But it takes about 4 seconds to that the cluster starts the next 
resources (i.e. IP3 and IP4).

Did anybody see this behaviour before?

Why does my cluster do not start all "parallel" resources together?

Michael.

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org