Chapter 1 Basic concepts of the election mode and zookeeper cluster installation 5-1

Source: Internet
Author: User

Tag: in general, it is the restart mechanism, nbsp INF span, Now picture

XX is our master, that is, our master node. Heartbeat mechanism. When a node fails, the entire cluster can still work. In the election mode, our current master runs normally, but in some cases it goes down and crashes. At this time, there will be no master in this cluster, there are no master two slave instances to compete. After the competition, slave1 gave slave2, or slave2 gave slave1. After the competition, we will have one left, and the rest will be successfully converted into another master.

If the original master is restored, after the O & M restart or repair is successful, it will actually access our cluster.

The election mode, ZK cluster, requires a quantity. At least one cluster must have three nodes, one master node and two slave nodes. In other words, the push is 3, 5, 7, and 9. Generally, if there are seven ZK clusters in an enterprise, such an enterprise can be said to be very large.

 

Chapter 1 Basic concepts of the election mode and zookeeper cluster installation 5-1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.