Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to analyze zookeeper Port

Shulou Source: shulou.com Published: 2022-06-01 08:01:20 10月03日 Update

How to carry out zookeeper port description, in response to this problem, this article details the corresponding analysis and solution, hoping to help more small partners who want to solve this problem find a simpler and easier way.

Zookeeper has three ports (can be modified)

1、2181

2、3888

3、2888

Two or three ports.

1. 2181: Provide services to cline end

2.3888: Election leader use

3. 2888: Communication between machines in the cluster (Leader listens on this port)

III. Pay attention to deployment

1. Single machine single instance, as long as the port is not occupied

2. Stand-alone pseudo-cluster (stand-alone, multiple instances deployed), three ports must be modified to different groups

Myid1 :2181, 3888, 2888

myid2 : 2182,3788,2788

myid3 : 2183,3688,2688

Cluster (one machine deploys one instance)

4. The cluster is greater than or equal to 3 cardinal numbers, such as 3, 5, 7... Not too many, cluster machines too many elections and data synchronization time-consuming, unstable. At present, I think three elections +N stations observe is very good.

About how to carry out the zookeeper port description of the answer to the question shared here, I hope the above content can have some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.

Tags: Port cluster stand-alone instance machine question election three more help answer analysis good easy easy function content cardinality multiple boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi NVidia Docker MariaDB