<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span></div><blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em; margin-Right: inherit"><div><br></div><div><p>Hi Miroslav,</p><p>Thank you for your helpful suggestions! I followed your advice and used the <code>pcs</code> command with the <code>-f</code> option to create the cluster CIB configuration, and then pushed it using <code>pcs cluster cib-push</code>.</p><p>I'm happy to report that the configuration time has been significantly reduced! The resource configuration time has been reduced from the original 2 hours and 31 minutes to just 31 minutes. I appreciate your help in pointing me in the right direction.</p><p>Thanks again for your assistance!</p><p>Best regards,<br>Zufei Chen</p></div><div><br></div><div><div>attachment:</div><div>new create bash: pcs_create.sh</div></div><div><br></div><div>-------------------------------------------------------------------------------------------------------------------</div>
<div>Message: 1</div>
<div>Date: Thu, 24 Oct 2024 14:01:57 +0200</div>
<div>From: Miroslav Lisik <mlisik@redhat.com></div>
<div>To: users@clusterlabs.org</div>
<div>Subject: Re: [ClusterLabs] poor performance for large resource</div>
<div> configuration</div>
<div>Message-ID: <a9841659-0249-47b6-982c-132880d50cd4@redhat.com></div>
<div>Content-Type: text/plain; charset=UTF-8; format=flowed</div>
<div> </div>
<div>On 10/21/24 13:07, zufei chen wrote:</div>
<div>> Hi all,</div>
<div>></div>
<div>> background?</div>
<div>></div>
<div>> 1. lustre(2.15.5) + corosync(3.1.5) + pacemaker(2.1.0-8.el8) +</div>
<div>> pcs(0.10.8)</div>
<div>> 2. there are 11 nodes in total, divided into 3 groups. If a node</div>
<div>> fails within a group, the resources can only be taken over by</div>
<div>> nodes within that group.</div>
<div>> 3. Each node has 2 MDTs and 16 OSTs.</div>
<div>></div>
<div>> Issues:</div>
<div>></div>
<div>> 1. The resource configuration time progressively increases. the</div>
<div>> second mdt-0? cost only???8s?the last?ost-175 cost??1min:37s</div>
<div>> 2. The total time taken for the configuration is approximately 2</div>
<div>> hours and 31 minutes. Is there a way to improve it?</div>
<div>></div>
<div>></div>
<div>> attachment:</div>
<div>> create bash: pcs_create.sh</div>
<div>> create log:?pcs_create.log</div>
<div>></div>
<div>> _______________________________________________</div>
<div>> Manage your subscription:</div>
<div>> https://lists.clusterlabs.org/mailman/listinfo/users</div>
<div>></div>
<div>> ClusterLabs home: https://www.clusterlabs.org/</div>
<div>Hi,</div>
<div> </div>
<div>you could try to create cluster CIB configuration with pcs commands on a</div>
<div>file using the '-f' option and then push it to the pacemaker all at once.</div>
<div> </div>
<div>pcs cluster cib > original.xml</div>
<div>cp original.xml new.xml</div>
<div>pcs -f new.xml <command></div>
<div>...</div>
<div>...</div>
<div>pcs cluster cib-push new.xml diff-against=original.xml</div>
<div> </div>
<div>And then wait for the cluster to settle into stable state:</div>
<div> </div>
<div>crm_resource --wait</div>
<div> </div>
<div>Or there is pcs command since version v0.11.8:</div>
<div> </div>
<div>pcs status wait [<timeout>]</div>
<div> </div>
<div>I hope this will help you to improve the performance.</div>
<div> </div>
<div>Regards,</div>
<div>Miroslav</div>
<div> </div>
<div> </div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>Subject: Digest Footer</div>
<div> </div>
<div>_______________________________________________</div>
<div>Manage your subscription:</div>
<div>https://lists.clusterlabs.org/mailman/listinfo/users</div>
<div> </div>
<div>ClusterLabs home: https://www.clusterlabs.org/</div>
<div> </div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>End of Users Digest, Vol 117, Issue 24</div>
<div>**************************************</div>
</blockquote>
</body></html>