simple corosync+pacemaker cluster with nginx and vIP

node web1-mcc1
node web2-mcc1
primitive nginx lsb:nginx
primitive vip ocf:heartbeat:IPaddr2
params ip=”10.4.30.100″ cidr_netmask=”24″ nic=”eth0″
op monitor interval=”2s”
colocation nginx_with_vip inf: vip nginx
order nginx_after_vip inf: vip nginx:start
property $id=”cib-bootstrap-options”
dc-version=”1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558″
cluster-infrastructure=”openais”
expected-quorum-votes=”4″
stonith-enabled=”false”
no-quorum-policy=”ignore”
last-lrm-refresh=”1334937144″
rsc_defaults $id=”rsc-options”
resource-stickiness=”100″

Author: GergunD

Leave a Reply