<div dir="ltr">Ken, thank you for the answer.<div><br></div><div>Every node in my cluster under normal conditions has &quot;load average&quot; of about 420. It is mainly connected to the high disk IO on the system.</div><div>My system is designed to use almost 100% of its hardware (CPU/RAM/disks), so the situation when the system consumes almost all HW resources is normal. </div><div>I would like to get rid of <span style="font-size:12.8px">&quot;High CPU load detected&quot; messages in the log,</span> because they flood corosync.log as well as system journal.</div><div><br></div><div>Maybe you can give an advice what would be the best way do to it?</div><div><br></div><div>So far I came up with the idea of setting &quot;l<span style="font-size:12.8px">oad-threshold&quot; to 1000% , because of:</span></div><div>    420(<span style="font-size:12.8px">load average) </span>/ 24 (cores) = 17.5 (<span style="font-size:11pt;font-family:Calibri,sans-serif">adjusted_load</span>); </div><div>    2 (<span style="font-size:11pt;font-family:Calibri,sans-serif">THROTLE_FACTOR_HIGH</span><span style="font-size:12.8px">) * 10 (</span><span style="font-size:11pt;font-family:Calibri,sans-serif">throttle_load_target</span><span style="font-size:12.8px">) = 20</span></div><div><span style="font-size:12.8px"><br></span></div><div>    if(adjusted_load &gt; THROTTLE_FACTOR_HIGH * throttle_load_target) {</div><div>        crm_notice(&quot;High %s detected: %f&quot;, desc, load);</div><div><br></div><div><br></div><div>In this case do I need to set &quot;node-action-limit&quot; to something less than &quot;2 x cores&quot; (which is default).</div><div>Because the logic is (crmd/throttle.c):</div><div><br></div><div><div>    switch(r-&gt;mode) {</div><div>        case throttle_extreme:</div><div>        case throttle_high:</div><div>            jobs = 1; /* At least one job must always be allowed */</div><div>            break;</div><div>        case throttle_med:</div><div>            jobs = QB_MAX(1, r-&gt;max / 4);</div><div>            break;</div><div>        case throttle_low:</div><div>            jobs = QB_MAX(1, r-&gt;max / 2);</div><div>            break;</div><div>        case throttle_none:</div><div>            jobs = QB_MAX(1, r-&gt;max);</div><div>            break;</div><div>        default:</div><div>            crm_err(&quot;Unknown throttle mode %.4x on %s&quot;, r-&gt;mode, node);</div><div>            break;</div><div>    }</div><div>    return jobs;</div></div><div><br></div><div><br></div><div>The thing is, I know that there is &quot;<span style="font-size:12.8px">High CPU load&quot; and this is normal state, but I </span><span style="font-size:12.8px">wont</span><span style="font-size:12.8px"> Pacemaker to not saying it to me and treat this state the best it can.</span></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thank you,<div>Kostia</div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 14, 2016 at 7:18 PM, Ken Gaillot <span dir="ltr">&lt;<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/29/2016 07:00 AM, Kostiantyn Ponomarenko wrote:<br>
&gt; I am back to this question =)<br>
&gt;<br>
&gt; I am still trying to understand the impact of &quot;High CPU load detected&quot;<br>
&gt; messages in the log.<br>
&gt; Looking in the code I figured out that setting &quot;load-threshold&quot; parameter<br>
&gt; to something higher than 100% solves the problem.<br>
&gt; And actually for 8 cores (12 with Hyper Threading) load-threshold=400% kind<br>
&gt; of works.<br>
&gt;<br>
&gt; Also I noticed that this parameter may have an impact on the number of &quot;the<br>
&gt; maximum number of jobs that can be scheduled per node&quot;. As there is a<br>
&gt; formula to limit F_CRM_THROTTLE_MAX based on F_CRM_THROTTLE_MODE.<br>
&gt;<br>
&gt; Is my understanding correct that the impact of setting &quot;load-threshold&quot;<br>
&gt; high enough (so there is no noisy messages) will lead only to the<br>
&gt; &quot;throttle_job_max&quot; and nothing more.<br>
&gt; Also, if I got it correct, than &quot;throttle_job_max&quot; is a number of allowed<br>
&gt; parallel actions per node in lrmd.<br>
&gt; And a child of the lrmd is actually an RA process running some actions<br>
&gt; (monitor, start, etc).<br>
&gt;<br>
&gt; So there is no impact on how many RA (resources) can run on a node, but how<br>
&gt; Pacemaker will operate with them in parallel (I am not sure I understand<br>
&gt; this part correct).<br>
<br>
</span>I believe that is an accurate description. I think the job limit applies<br>
to fence actions as well as lrmd actions.<br>
<br>
Note that if /proc/cpuinfo exists, pacemaker will figure out the number<br>
of cores from there, and divide the actual reported load by that number<br>
before comparing against load-threshold.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Thank you,<br>
&gt; Kostia<br>
&gt;<br>
&gt; On Wed, Jun 3, 2015 at 12:17 AM, Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 27 May 2015, at 10:09 pm, Kostiantyn Ponomarenko &lt;<br>
&gt;&gt; <a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I think I wasn&#39;t precise in my questions.<br>
&gt;&gt;&gt; So I will try to ask more precise questions.<br>
&gt;&gt;&gt; 1. why the default value for &quot;load-threshold&quot; is 80%?<br>
&gt;&gt;<br>
&gt;&gt; Experimentation showed it better to begin throttling before the node<br>
&gt;&gt; became saturated.<br>
&gt;&gt;<br>
&gt;&gt;&gt; 2. what would be the impact to the cluster in case of<br>
&gt;&gt; &quot;load-threshold=100%”?<br>
&gt;&gt;<br>
&gt;&gt; Your nodes will be busier.  Will they be able to handle your load or will<br>
&gt;&gt; it result in additional recovery actions (creating more load and more<br>
&gt;&gt; failures)?  Only you will know when you try.<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you,<br>
&gt;&gt;&gt; Kostya<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, May 25, 2015 at 4:11 PM, Kostiantyn Ponomarenko &lt;<br>
&gt;&gt; <a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; Guys, please, if anyone can help me to understand this parameter better,<br>
&gt;&gt; I would be appreciated.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you,<br>
&gt;&gt;&gt; Kostya<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, May 22, 2015 at 4:15 PM, Kostiantyn Ponomarenko &lt;<br>
&gt;&gt; <a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; Another question - is it crmd specific to measure CPU usage by &quot;I/O<br>
&gt;&gt; wait&quot;?<br>
&gt;&gt;&gt; And if I need to get the most performance of the running resources in<br>
&gt;&gt; cluster, should I set &quot;load-threshold=95%&quot; (or even 100%)?<br>
&gt;&gt;&gt; Will it impact the cluster behavior in any ways?<br>
&gt;&gt;&gt; The man page for crmd says that it will &quot;The cluster will slow down its<br>
&gt;&gt; recovery process when the amount of system resources used (currently CPU)<br>
&gt;&gt; approaches this limit&quot;.<br>
&gt;&gt;&gt; Does it mean there will be delays in cluster in moving resources in case<br>
&gt;&gt; a node goes down, or something else?<br>
&gt;&gt;&gt; I just want to understand in better.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; That you in advance for the help =)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; P.S.: The main resource does a lot of disk I/Os.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you,<br>
&gt;&gt;&gt; Kostya<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, May 22, 2015 at 3:30 PM, Kostiantyn Ponomarenko &lt;<br>
&gt;&gt; <a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; I didn&#39;t know that.<br>
&gt;&gt;&gt; You mentioned &quot;as opposed to other Linuxes&quot;, but I am using Debian Linux.<br>
&gt;&gt;&gt; Does it also measure CPU usage by I/O waits?<br>
&gt;&gt;&gt; You are right about &quot;I/O waits&quot; (a screenshot of &quot;top&quot; is attached).<br>
&gt;&gt;&gt; But why it shows 50% of CPU usage for a single process (that is the main<br>
&gt;&gt; one) while &quot;I/O waits&quot; shows a bigger number?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you,<br>
&gt;&gt;&gt; Kostya<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, May 22, 2015 at 9:40 AM, Ulrich Windl &lt;<br>
&gt;&gt; <a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt; &quot;Ulrich Windl&quot; &lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>&gt; schrieb am<br>
&gt;&gt; 22.05.2015 um<br>
&gt;&gt;&gt; 08:36 in Nachricht &lt;<a href="mailto:555EEA72020000A10001A71D@gwsmtp1.uni-regensburg.de">555EEA72020000A10001A71D@gwsmtp1.uni-regensburg.de</a>&gt;:<br>
&gt;&gt;&gt;&gt; Hi!<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I Linux I/O waits are considered for load (as opposed to other<br>
&gt;&gt; Linuxes) Thus<br>
&gt;&gt;&gt; ^^ &quot;In&quot;<br>
&gt;&gt;                             s/Linux/UNIX/<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; (I should have my coffee now to awake ;-) Sorry.<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>