Understanding the basic concepts of Zookeeper

1. What is a distributed system

2. Distributed systems need a coordinator to solve synchronization problems and network problems.

N physically distributed processes have to compete for this resource, but we don't want them to access at the same time. At this time, we need a coordinator to allow them to access this resource in an orderly manner. This coordinator is the lock we often refer to.

3. Problems faced by distributed lock implementation.

The problem is the network. In a distributed system, the assumption of all being on the same machine doesn't exist: because the network is unreliable.

For example, the problem of returning to confirm the network interruption, the problem of both A and B calling the service of C, the problem of multiple node synchronization (deployment of multiple sets to ensure reliability), etc., we also need to think about the impact of these problems on our design and coding.

4. At present, Google's Chubby and Apache's ZooKeeper are the implementers of distributed locks that do well in distributed coordination technology.

5. Zookeeper overview and data model (model znode, primitives, notification mechanism)

6.zookeeper is an important component and application of Hadoop and HBase.

 

Reprinted: https://www.cnblogs.com/wuxl360/p/5817471.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326016751&siteId=291194637