[ClusterLabs] Resource-stickiness is not working

Confidential Company sgurovosa at gmail.com
Fri Jun 1 10:58:01 EDT 2018


Hi,

I have two-node active/passive setup. My goal is to failover a resource
once a Node goes down with minimal downtime as possible. Based on my
testing, when Node1 goes down it failover to Node2. If Node1 goes up after
link reconnection (reconnect physical cable), resource failback to Node1
even though I configured resource-stickiness. Is there something wrong with
configuration below?

#service firewalld stop
#vi /etc/hosts --> 192.168.10.121 (Node1) / 192.168.10.122 (Node2)
------------- Private Network (Direct connect)
#systemctl start pcsd.service
#systemctl enable pcsd.service
#passwd hacluster --> define pw
#pcs cluster auth Node1 Node2
#pcs setup --name Cluster Node1 Node2
#pcs cluster start -all
#pcs property set stonith-enabled=false
#pcs resource create ClusterIP ocf:heartbeat:IPaddr2 ip=192.168.10.123
cidr_netmask=32 op monitor interval=30s
#pcs resource defaults resource-stickiness=100

Regards,
imnotarobot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20180601/3d1c0f17/attachment.html>


More information about the Users mailing list