You can bump the 'token' to a higher value (for example 10s ) and adjust the consensus based on that value. See man 5 corosync.conf<div><br></div><div>Don't forget to sync the nodes and reload the corosync stack.</div><div><br></div><div>Of course proper testing on non-Prod is highly recommend.</div><div><br></div><div>Note: Both parameters use milliseconds (at least based on the manpage)</div><div><br></div><div>Best Regards,</div><div>Strahil Nikolov<br> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Wed, Mar 9, 2022 at 12:46, FLORAC Thierry</div><div><thierry.florac@onf.fr> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div id="yiv4997566984">

 
<style type="text/css">#yiv4997566984 P {margin-top:0;margin-bottom:0;}</style>

<div dir="ltr">
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
Hi,</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
<br>
</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
I manage an active/passive PostgreSQL cluster using DRBD, LVM, Pacemaker and Corosync on a Debian GNU/Linux operating system.</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
Everything is OK, but my platform seems to be quite "sensitive" to small network timeouts which are generating a cluster migration start from active to passive node; generally, the process doesn't go through to the end: as soon as the connection is back again,
 the migration is cancelled and the database restarts!</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
That should be OK but on the application side, some database connections (on a Java WildFly server) can become "invalid"! So I would like to avoid these migrations when this kind of small timeout occurs...<br>
</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
<br>
</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
So my question is: which cluster settings can I change to increase the timeout before starting a cluster migration?</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
<br>
</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
Best regards,</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
Thierry<br>
</div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);">
<br>
</div>
<div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);">
<br>
</div>
<div id="yiv4997566984Signature">
<div>
<div style="font-family:Cen sans-serif;font-size:12pt;color:rgb(0, 0, 0);">
</div>
<div style="color:black;border:1px solid transparent;background-color:white;">
<p style="font-family:Arial, sans-serif;font-size:8pt;padding-left:25px;background-color:white;">
<span style="font-weight:bold;padding-bottom:2pt;font-size:9pt;">Thierry Florac </span>
<br>
<span>Resp. Pôle Architecture Applicative et Mobile</span><br>
<span>DSI - Dépt. Études et Solutions Tranverses </span><br>
<span>2, avenue de Saint-Mandé - 75570 Paris cedex 12 </span><br>
Tél : <span>01 40 19 59 64 </span><span></span><br>
<a href="https://www.onf.fr" target="_blank" rel="noreferrer noopener"><strong>www.onf.fr</strong> </a></p>
<img style="border:0;" width="300" height="90" src="http://www.ext.onf.fr/img/onf-signature.jpg" id="ymail_ctr_id_-59592-2">
</div>
<br>
</div>
</div>
</div>
</div>

</div>_______________________________________________<br>Manage your subscription:<br><a href="https://lists.clusterlabs.org/mailman/listinfo/users" target="_blank" rel="noreferrer noopener">https://lists.clusterlabs.org/mailman/listinfo/users</a><br><br>ClusterLabs home: <a href="https://www.clusterlabs.org/" target="_blank" rel="noreferrer noopener">https://www.clusterlabs.org/</a><br> </div> </blockquote></div>