<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:等线;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@等线";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:等线;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"纯文本 字符";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:宋体;}
span.a
{mso-style-name:"纯文本 字符";
mso-style-priority:99;
mso-style-link:纯文本;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal-compose;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:等线;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-US">Thank you very much, Rorthais,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">I see now. I have two more questions.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">1. If I change the "cluster-recheck-interval" parameter from the default 15 minutes to 10 seconds, is there any bad impact? Could this be a workaround?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">2. This issue happens only in the following configuration.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><img width="553" height="224" style="width:5.7604in;height:2.3333in" id="图片_x0020_2" src="cid:image003.jpg@01D3D700.2F3E24D0"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">But it does not happen in the following configuration. Why is the behaviors different?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><img width="469" height="405" style="width:4.8854in;height:4.2187in" id="图片_x0020_7" src="cid:image004.jpg@01D3D700.2F3E24D0"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">-----</span><span style="font-family:等线">邮件原件</span><span lang="EN-US">-----<br>
</span><span style="font-family:等线">发件人</span><span lang="EN-US">: Jehan-Guillaume de Rorthais [mailto:jgdr@dalibo.com]
<br>
</span><span style="font-family:等线">发送时间</span><span lang="EN-US">: 2018</span><span style="font-family:等线">年</span><span lang="EN-US">4</span><span style="font-family:等线">月</span><span lang="EN-US">17</span><span style="font-family:等线">日</span><span lang="EN-US">
17:47<br>
</span><span style="font-family:等线">收件人</span><span lang="EN-US">: </span><span style="font-family:等线">范国腾</span>
<span lang="EN-US"><fanguoteng@highgo.com><br>
</span><span style="font-family:等线">抄送</span><span lang="EN-US">: Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org><br>
</span><span style="font-family:等线">主题</span><span lang="EN-US">: Re: [ClusterLabs] No slave is promoted to be master<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">On Tue, 17 Apr 2018 04:16:38 +0000<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:等线">范国腾</span><span lang="EN-US"> <<a href="mailto:fanguoteng@highgo.com"><span style="color:windowtext;text-decoration:none">fanguoteng@highgo.com</span></a>> wrote:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> I check the status again. It is not not promoted but it promoted about
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> 15 minutes after the cluster starts.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> I try in three labs and the results are same: The promotion happens 15
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> minutes after the cluster starts.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> Why is there about 15 minutes delay every time?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">This was a bug in Pacemaker up to 1.1.17. I did a report about this last August and Ken Gaillot fixed it few days later in 1.1.18. See:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><a href="https://lists.clusterlabs.org/pipermail/developers/2017-August/001110.html"><span style="color:windowtext;text-decoration:none">https://lists.clusterlabs.org/pipermail/developers/2017-August/001110.html</span></a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><a href="https://lists.clusterlabs.org/pipermail/developers/2017-September/001113.html"><span style="color:windowtext;text-decoration:none">https://lists.clusterlabs.org/pipermail/developers/2017-September/001113.html</span></a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">I wonder if disabling the pgsql resource before shutting down the cluster might be a simpler and safer workaround. Eg.:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">pcs resource disable pgsql-ha --wait<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">pcs cluster stop --all<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">and <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">pcs cluster start --all<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">pcs resource enable pgsql-ha<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Another fix would be to force a master score on one node **if needed** using:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> crm_master -N <node name> -r <resource_name> -l forever -v 1<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>