<div dir="ltr">Hello guys,<div><br></div><div style>I am running corosync 1.4.2 and pacemaker 1.1.7 on Debian environments trying to deploy an active/active cluster with two nodes.</div><div style>The main problem is that I have two resources that depend on each other, so I have the VIP cloned over the two node and nginx daemon which depends on VIP, but when nginx goes down the VIP onde the failed node is not removed from cluster and that node still answer to the requests.</div>
<div style>Follow my current configuration:</div><div style><div>node host01</div><div>node host02</div><div>primitive ClusterIP ocf:heartbeat:IPaddr2 \</div><div><span class="" style="white-space:pre">        </span>params ip="192.168.2.100" cidr_netmask="24" nic="eth0" clusterip_hash="sourceip" \</div>
<div><span class="" style="white-space:pre">    </span>op monitor interval="1s"</div><div>primitive WebSite lsb:nginx \</div><div><span class="" style="white-space:pre">     </span>op monitor interval="1s"</div>
<div>clone WebIP ClusterIP \</div><div><span class="" style="white-space:pre">      </span>meta globally-unique="true" clone-max="2" clone-node-max="2"</div><div>clone WebSiteClone WebSite</div><div>
colocation website-with-ip inf: WebSiteClone WebIP</div><div>order nginx-after-ip inf: WebIP WebSiteClone</div><div>property $id="cib-bootstrap-options" \</div><div><span class="" style="white-space:pre">    </span>dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \</div>
<div><span class="" style="white-space:pre">    </span>cluster-infrastructure="openais" \</div><div><span class="" style="white-space:pre">       </span>expected-quorum-votes="2" \</div><div><span class="" style="white-space:pre">      </span>stonith-enabled="false" \</div>
<div><span class="" style="white-space:pre">    </span>last-lrm-refresh="1364509824"</div><div><br></div><div style>I have followed the pacemaker doc(<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-crmsh/pdf/Clusters_from_Scratch/Pacemaker-1.1-Clusters_from_Scratch-en-US.pdf">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-crmsh/pdf/Clusters_from_Scratch/Pacemaker-1.1-Clusters_from_Scratch-en-US.pdf</a>) but I haven't used the distributed file system because, in this case, nginx is not sharing the configuration files and is playing like a load balancer.</div>
<div style>Can you tell me how to "link" the resources ?</div><div style><br></div><div style>Thank you</div></div></div>