本文介绍了什么是zookeeper端口及其用法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我过去几天遇到的动物园管理员端口,我是新手。

我两次引入了 zookeeper port 关键字:

I am quite new for zookeeper port through which I am coming across from past few days.
I introduced with zookeeper port keyword at two occasion:


  • 配置neo4j数据库集群时()和

  • ()(参见网络配置参数)

  • while configuring neo4j db cluster (link) and
  • while running compiled voltdb catalog (link) (See Network Configuration Arguments)

然后,我遇到了,(我猜这与分布式应用程序有关,我也是分布式应用程序中的新手)。因此我想到了一个问题:

Then, I came across Apache Zookeeper, (which I guess is related to distributed application, I am a newbie in distributed application as well). hence question came in my mind:


  1. 在上述2个场景中是否有apache zookeeper的实现?

  2. 这个zookeeper端口究竟在内部做什么?

任何帮助将不胜感激,谢谢。

Any help would be appreciated, Thanks.

推荐答案

Zookeeper主要用于分布式应用程序,用于配置管理和高可用性操作。 Zookeeper通过Master-Slave架构实现这一目标。 Neo4j和VoltDb可能正在使用zookeeper来实现此目的

Zookeeper is used in distributed applications mainly for configuration management and high availability operations. Zookeeper does this by a Master-Slave architecture. Neo4j and VoltDb might be using zookeeper for this purpose

来到港口了解:
假设你有3台服务器供动物园管理员......你需要提一下配置为

Coming to the ports understanding :suppose u have 3 servers for zookeepers ... You need to mention in configuration as

clientPort=2181
server.1=zookeeper1:2888:3888
server.2=zookeeper2:2888:3888
server.3=zookeeper3:2888:3888

其中一个服务器将成为主服务器,其余所有服务器将成为服务器。如果任何服务器关闭,那么zookeeper会自动选择领导者。

Out of these one server will be the master and rest all will be slaves.If any server goes OFF then zookeeper elects leader automatically .

这篇关于什么是zookeeper端口及其用法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 22:00