You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Zhewei Hu (Jira)" <ji...@apache.org> on 2021/03/19 04:57:00 UTC

[jira] [Commented] (ZOOKEEPER-1780) add a FAQ for why myid file is required

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304640#comment-17304640 ] 

Zhewei Hu commented on ZOOKEEPER-1780:
--------------------------------------

Why myid file is required?

- The myid file contains an integer in human-readable ASCII text that represents a unique server id. When a ZooKeeper server starts, it reads its id from the myid file and then uses the id to find the port numbers, which it should listen to, from the configuration file. We do not recommend using the IP addresses of ZooKeeper servers to become the unique server ids as IP addresses can be moved from one server to another.

> add a FAQ for why myid file is required
> ---------------------------------------
>
>                 Key: ZOOKEEPER-1780
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1780
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Patrick D. Hunt
>            Priority: Minor
>
> This comes up every so often, would be good for us to document on the FAQ.
> https://cwiki.apache.org/confluence/display/ZOOKEEPER/FAQ
> here's one such discussion: http://markmail.org/message/cvzz3tq3gievicqe



--
This message was sent by Atlassian Jira
(v8.3.4#803005)