Zookeeper server Cluster Configuration instance

Source: Internet
Author: User

One: Download zookeeper-3.4.6.tar.gz II: Configuration/home/tang_h/jack/zookeeper-3.4.6/conf/zoo.cfg The following content
[email protected] conf]$ cat zoo.cfg
ticktime=2500
initlimit=12
synclimit=6
clientport=2181
Datadir=/tmp/zookeeper
Datalogdir=/tmp/zookeeper-logs
maxclientcnxns=1000
minsessiontimeout=8000
maxsessiontimeout=16000
#leadeServer =yes
# Server recommendation is more than three

server.1=192.168.83.204:2887:3887
server.2=10.9.113.28:2887:3887
server.3=192.168.79.152:2887:3887
Three: When configuring the cluster, note the following files for Datadir=/tmp/zookeeper:
[email protected] conf]$ Cat/tmp/zookeeper/myid
1
Four: DataDir and Datalogdir and myID are to be created manually, otherwise will be error, pay attention to reading the wrong message

Zookeeper server Cluster Configuration instance

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.