Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-107 Allow dynamic changes to server cluster membership
  3. ZOOKEEPER-1411

Consolidate membership management, distinguish between static and dynamic configuration parameters

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0
    • server
    • None
    • Reviewed

    Description

      Currently every server has a different static configuration file. This patch distinguishes between dynamic parameters, which are now in a separate "dynamic configuration file", and static parameters which are in the usual file. The config file points to the dynamic config file by specifying "dynamicConfigFile=...". In the first stage (this patch), all cluster membership definitions are in the dynamic config file, but in the future additional parameters may be moved to the dynamic file.

      Backward compatibility makes sure that you can still use a single config file if you'd like. Only when the config is changed (once ZK-107 is in) a dynamic file is automatically created and the necessary parameters are moved to it.

      This patch also moves all membership parsing and management into the QuorumVerifier classes, and removes QuorumPeer.quorumPeers.
      The cluster membership is contained in QuorumPeer.quorumVerifier. QuorumVerifier was expanded and now has methods such as getAllMembers(), getVotingMembers(), getObservingMembers().

      Attachments

        1. ZOOKEEPER-1411-ver9.patch
          108 kB
          Alexander Shraer
        2. ZOOKEEPER-1411-ver8.patch
          107 kB
          Alexander Shraer
        3. ZOOKEEPER-1411-ver7.patch
          108 kB
          Alexander Shraer
        4. ZOOKEEPER-1411-ver6.patch
          99 kB
          Alexander Shraer
        5. ZOOKEEPER-1411-ver5.patch
          106 kB
          Alexander Shraer
        6. ZOOKEEPER-1411-ver4.patch
          107 kB
          Alexander Shraer
        7. ZOOKEEPER-1411-ver3.patch
          107 kB
          Alexander Shraer
        8. ZOOKEEPER-1411-ver2.patch
          107 kB
          Alexander Shraer
        9. ZOOKEEPER-1411-ver11.patch
          107 kB
          Alexander Shraer
        10. ZOOKEEPER-1411-ver10.patch
          107 kB
          Alexander Shraer
        11. ZOOKEEPER-1411-ver1.patch
          106 kB
          Alexander Shraer
        12. ZOOKEEPER-1411-small-fix.patch
          1 kB
          Alexander Shraer

        Issue Links

          Activity

            People

              shralex Alexander Shraer
              shralex Alexander Shraer
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: