node webui node 168633611: node1 rsc_template web-server apache \ params port=8000 \ op monitor interval=10s # Never use this STONITH agent in production! primitive development-stonith stonith:null \ params hostlist="webui node1 node2 node3" primitive proxy systemd:haproxy \ op monitor interval=10s primitive proxy-vip IPaddr2 \ params ip=10.13.37.20 primitive srv1 @web-server primitive srv2 @web-server primitive test1 Dummy primitive test2 IPaddr2 \ params ip=10.13.37.99 primitive vip1 IPaddr2 \ params ip=10.13.37.21 \ op monitor interval=20s primitive vip2 IPaddr2 \ params ip=10.13.37.22 \ op monitor interval=20s group g-proxy proxy-vip proxy group g-serv1 vip1 srv1 group g-serv2 vip2 srv2 # Never put the two web servers on the same node colocation co-serv -inf: g-serv1 g-serv2 # Never put any web server or haproxy on webui location l-avoid-webui { g-proxy g-serv1 g-serv2 } -inf: webui # Prever to spread groups across nodes location l-proxy g-proxy 200: node1 location l-serv1 g-serv1 200: node2 location l-serv2 g-serv2 200: node3 property cib-bootstrap-options: \ stonith-enabled=true \ no-quorum-policy=ignore \ placement-strategy=balanced \ have-watchdog=false \ dc-version="1.1.13-1.1.13+git20150827.e8888b9" \ cluster-infrastructure=corosync \ cluster-name=hacluster rsc_defaults rsc-options: \ resource-stickiness=1 \ migration-threshold=3 op_defaults op-options: \ timeout=600 \ record-pending=true