Third, the application scenarios zookeeper cluster

Scene One: Uniform Naming Service
Third, the application scenarios zookeeper cluster

We play to the service or application name, and then below there the corresponding ip address, this is easier to understand, similar to the DNS resolution

Scene Two:

Third, the application scenarios zookeeper cluster
We write the configuration file is / configuration file inside and then to three client / configuration node to monitor, when the change occurred after the node content, client will be told, then the client will receive a new configuration pull down, make changes

Scene Three:
Third, the application scenarios zookeeper cluster
The Unified Cluster management is real-time access to information nodes, this point is very important in the cluster, client start each one will be registered in zk cluster and listens, when the server is changed, it will make corresponding changes

Scene Four:
Third, the application scenarios zookeeper cluster
is the server will cluster server status information is written to the cluster zk, 2 occurs when the server changes, zk data will change, which will inform the client, it would not go cilent this connection server2 the server

Scene Five:
Third, the application scenarios zookeeper cluster
In zk cluster storage, access to the storage node information and the number of nginx cluster service, zk will be allocated according to the number of new requests access nodes.

Guess you like

Origin blog.51cto.com/13930997/2454364