The essay is mainly about the introduction, installation and launch of Dubbox's registry zookeeper.
In distributed applications, the primary role of the registry is to register and locate service addresses , which is equivalent to directory services, where service providers and consumers interact with the registry only at startup, and the registry does not forward requests, with less pressure.
I. Introduction of Zookeeper
Zookeeper is a sub-project of Apacahe Hadoop, a tree-based directory service that supports change push and is suitable as a registration center for Dubbox Services, with high industrial strength and can be used in production environments.
Two. Installation of Zookeeper on Linux systems
The zookeeper environment needs to install the JDK, so we need to install the JDK first, but we don't cover this part of the content, there are many tutorials on the web.
1. Upload the Zookeeper installation package to the Linux system first (I provide a 3.4.6 version below)
2. Unzip the package
TAR-ZXVF zookeeper-3.4.6.tar.gz
3. Enter the zookeeper-3.4.6 directory to create the data directory
mkdir data
4. Enter the Conf directory and rename the zoo_sample.cfg to Zoo.cfg
CD conf
MV Zoo_sample.cfg Zoo.cfg
5. Open Zoo.cfg Modify Data property
Datadir=/root/zookeeper-3.4.6/data
Three. Zookeeper Start-up
Go to the Bin directory and enter the service start command.
./zkserver.sh Start
If the output below indicates success
You can use the./zkservice.sh status to view the startup status
Use zkservice.sh stop to stop
Spring Integration Dubbox (ii) Zookeeper