Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze zookeeper Port

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report