<div dir="ltr"><div><font size="2">Version in use: 1.1 along with corosync 1.4<br></font></div><div><font size="2"><br></font></div><div><font size="2">Hello,</font></div><div><font size="2">I am new to pacemaker and was trying to setup a MySQL master/slave cluster using pacemaker and had a question on resource failure response which I couldn't resolve from the documentation.<br></font></div><div><font size="2"><br></font></div><div><font size="2">The pacemaker doc (<a href="https://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_failure_response.html">https://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_failure_response.html</a>) says clearly that:</font></div><div><font size="2"><br></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">"Normally, if a running resource fails, pacemaker will try to stop it and start it again."</span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><br></span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font face="arial,helvetica,sans-serif">I was wondering if there is a way to configure the # of times pacemaker will attempt this start and stop sequence - we want to try and restart the resource 2 or 3 times before it is stopped. Obviously setting a migration-threshold doesn't work in this case because the moment the 1st attempt to restart the resource fails, fail-count is set to INFINITY. Our failure-timeout is set to default (0).<br><br></font></span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font face="arial,helvetica,sans-serif">The reason we wish to do this is that, at times the database is busy and the monitor action fails. However there is a good chance it might succeed on a second or third attempt.<br><br></font></span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font face="arial,helvetica,sans-serif">Is there a parameter in pacemaker that we can utilize to cause this behavior or will this have to be coded in the resource agent?<br><br></font></span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font face="arial,helvetica,sans-serif">Thanks,<br></font></span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font face="arial,helvetica,sans-serif">Vaibhaw<br></font></span></font></div><div><font size="2"><span style="color:rgb(0,0,0);font-family:"liberation sans","Myriad ","Bitstream Vera Sans","Lucida Grande","Luxi Sans","Trebuchet MS",helvetica,verdana,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font face="arial,helvetica,sans-serif"><br></font></span></font></div></div>