deploy zookeeper cluster

  |   0 评论   |   13 浏览

reference:

  1. gw
  2. docker-gw

example

  1. zoo.cfg
tickTime=2000
dataDir=/data
dataLogDir=/datalog
clientPort=2181
initLimit=5
syncLimit=2
  1. docker run
docker run -d \
  --network host \
  --restart=always \
  -v "{{work_dir}}"/zoo.cfg:/conf/zoo.cfg \
  -v "{{ work_dir }}/log":/datalog \
  -v "{{ work_dir }}/data":/data \
  -e ZOO_MY_ID=1 \
  -e ZOO_SERVERS="{% for host in zookeeper_hosts %}{{host}}:2888:3888;2181 {% endfor %}" \
  --name {{node_name}} \
  zookeeper:3.5


标题:deploy zookeeper cluster
作者:SmiteLi
地址:https://smite.site/articles/2020/01/09/1578547161578.html

评论

发表评论