Advertisement
BinLiu

3-node-cluster

Mar 20th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. I 've a 3-node cluster, A-B-C
  2.  
  3. 1) set iptables on A to block B
  4.  
  5. 2) set iptables on B to block A
  6.  
  7.  
  8. In fact, it will occurs as following:
  9. On node C:
  10. Mar 16 10:59:57 bliu-sle12sp1-node3 corosync[5952]: [TOTEM ] A new membership (10.67.162.84:28) was formed. Members left: 172204627
  11. Mar 16 10:59:57 bliu-sle12sp1-node3 corosync[5952]: [TOTEM ] Failed to receive the leave message. failed: 172204627
  12. Mar 16 10:59:57 bliu-sle12sp1-node3 corosync[5952]: [QUORUM] Members[2]: 172204628 172204629
  13. Mar 16 10:59:57 bliu-sle12sp1-node3 corosync[5952]: [MAIN ] Completed service synchronization, ready to provide service.
  14.  
  15. On node B:
  16. Mar 16 11:00:03 bliu-sle12sp1-node1 corosync[5964]: [TOTEM ] A new membership (10.67.162.83:28) was formed. Members left: 172204628 172204629
  17. Mar 16 11:00:03 bliu-sle12sp1-node1 corosync[5964]: [TOTEM ] Failed to receive the leave message. failed: 172204628 172204629
  18. Mar 16 11:00:03 bliu-sle12sp1-node1 corosync[5964]: [QUORUM] This node is within the non-primary component and will NOT provide any services.
  19.  
  20. On node A:
  21. Mar 16 10:59:50 bliu-sle12sp1-node2 corosync[5965]: [TOTEM ] A processor failed, forming new configuration.
  22. Mar 16 10:59:56 bliu-sle12sp1-node2 corosync[5965]: [TOTEM ] A new membership (10.67.162.84:28) was formed. Members left: 172204627
  23. Mar 16 10:59:56 bliu-sle12sp1-node2 corosync[5965]: [TOTEM ] Failed to receive the leave message. failed: 172204627
  24. Mar 16 10:59:56 bliu-sle12sp1-node2 corosync[5965]: [QUORUM] Members[2]: 172204628 172204629
  25. Mar 16 10:59:56 bliu-sle12sp1-node2 corosync[5965]: [MAIN ] Completed service synchronization, ready to provide service.
  26.  
  27.  
  28. the cluster split into two components in fact, one with quorum, the other without quorum
  29.  
  30. so far everything is expected. I 've two questions about this condition:
  31.  
  32. 1) is there race between A and B to get the vote from C, which means it is random that A or B get consensus with C? but I repeated several times, it seems that A always
  33.  
  34. got consensus with C. Maybe it is just an accidental condition.
  35.  
  36. 2) is there mechanism for this condition to decide A or B always got consensus with C? except the qdevice solution:)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement