<div dir="ltr">Hi all,<div><br></div><div>I have configured a virtual ip and redis in master-slave with corosync pacemaker. If redis fails, then the failover is successful, and redis gets promoted on the other node. However if pacemaker itself fails on the active node, the failover is not performed. Is there anything I missed in the configuration?</div><div><br></div><div>Here's my configuration (i have hashed the ip address out):</div><div><br></div><div>
<p class=""><span class="">node</span><span class=""> <a href="http://host1.com">host1.com</a></span></p>
<p class=""><span class="">node</span><span class=""> <a href="http://host2.com">host2.com</a></span></p>
<p class=""><span class="">primitive</span><span class=""> ClusterIP IPaddr2 \</span></p>
<p class=""><span class=""> </span><span class="">params</span><span class=""> </span><span class="">ip</span><span class="">=xxx.xxx.xxx.xxx </span><span class="">cidr_netmask</span><span class="">=</span><span class="">23</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">op</span><span class=""> monitor </span><span class="">interval</span><span class="">=</span><span class="">1s</span><span class=""> </span><span class="">timeout</span><span class="">=</span><span class="">20s</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">op</span><span class=""> start </span><span class="">interval</span><span class="">=</span><span class="">0</span><span class=""> </span><span class="">timeout</span><span class="">=</span><span class="">20s</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">op</span><span class=""> stop </span><span class="">interval</span><span class="">=</span><span class="">0</span><span class=""> </span><span class="">timeout</span><span class="">=</span><span class="">20s</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">meta</span><span class=""> </span><span class="">is-managed</span><span class="">=</span><span class="">true</span><span class=""> </span><span class="">target-role</span><span class="">=</span><span class="">Started</span><span class=""> </span><span class="">resource-stickiness</span><span class="">=</span><span class="">500</span></p>
<p class=""><span class="">primitive</span><span class=""> redis redis \</span></p>
<p class=""><span class=""> </span><span class="">meta</span><span class=""> </span><span class="">target-role</span><span class="">=</span><span class="">Master</span><span class=""> </span><span class="">is-managed</span><span class="">=</span><span class="">true</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">op</span><span class=""> monitor </span><span class="">interval</span><span class="">=</span><span class="">1s</span><span class=""> </span><span class="">role</span><span class="">=</span><span class="">Master</span><span class=""> </span><span class="">timeout</span><span class="">=</span><span class="">5s</span><span class=""> </span><span class="">on-fail</span><span class="">=</span><span class="">restart</span></p>
<p class=""><span class="">ms</span><span class=""> redis_clone </span><span class="">redis</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">meta</span><span class=""> </span><span class="">notify</span><span class="">=</span><span class="">true</span><span class=""> </span><span class="">is-managed</span><span class="">=</span><span class="">true</span><span class=""> </span><span class="">ordered</span><span class="">=</span><span class="">false</span><span class=""> </span><span class="">interleave</span><span class="">=</span><span class="">false</span><span class=""> </span><span class="">globally-unique</span><span class="">=</span><span class="">false</span><span class=""> </span><span class="">target-role</span><span class="">=</span><span class="">Master</span><span class=""> </span><span class="">migration-threshold</span><span class="">=</span><span class="">1</span></p>
<p class=""><span class="">colocation</span><span class=""> ClusterIP-on-redis </span><span class="">inf</span><span class="">: </span><span class="">ClusterIP</span><span class=""> </span><span class="">redis_clone</span><span class="">:Master</span></p>
<p class=""><span class="">colocation</span><span class=""> ip-on-redis </span><span class="">inf</span><span class="">: </span><span class="">ClusterIP</span><span class=""> </span><span class="">redis_clone</span><span class="">:Master</span></p>
<p class=""><span class="">property</span><span class=""> </span><span class="">cib-bootstrap-options</span><span class="">: \</span></p>
<p class=""><span class=""> </span><span class="">dc-version</span><span class="">=</span><span class="">1.1.11-97629de</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">cluster-infrastructure</span><span class="">=</span><span class="">"classic openais (with plugin)"</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">expected-quorum-votes</span><span class="">=</span><span class="">2</span><span class=""> \</span></p>
<p class=""><span class=""> </span><span class="">stonith-enabled</span><span class="">=</span><span class="">false</span></p>
<p class=""><span class="">property</span><span class=""> </span><span class="">redis_replication</span><span class="">: \</span></p>
<p class=""><span class=""> </span><span class="">redis_REPL_INFO</span><span class="">=</span><span class=""><a href="http://host.com">host.com</a></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">thank you in advance</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Kind regards,</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Alex </span></p></div></div>