Table of Contents

Search

  1. Preface
  2. Introduction
  3. Servers
  4. Console Client
  5. Search Clients
  6. Table Loader
  7. Update Synchronizer
  8. Globalization
  9. Siebel Connector
  10. Web Services
  11. ASM Workbench
  12. Cluster Merge Rules
  13. Forced Link and Unlink
  14. System Backup and Restore
  15. Batch Utilities

Configuring the ZooKeeper Properties

Configuring the ZooKeeper Properties

The installer creates a configuration file named
zoo.cfg
that contains the ZooKeeper properties. You can customize the default properties of ZooKeeper based on your environment and requirement.
For more information about the ZooKeeper properties, see the ZooKeeper documentation.
  1. Open the
    zoo.cfg
    file from the following directory:
    • On Windows:
      <MDM Registry Edition Installation Directory>\bin
    • On UNIX.
      <MDM Registry Edition Installation Directory>/bin
  2. Customize the following properties based on your requirement:
    tickTime
    Length of a single tick, in milliseconds. ZooKeeper uses tick as the basic time unit to regulate timeouts. Default is 2000.
    initLimit
    Number of ticks after which the ZooKeeper server times out during the synchronization process. Default is 10.
    syncLimit
    Maximum number of ticks for the followers to wait to synchronize with the leader before the followers time out. Default is 5.
    dataDir
    Absolute path for the ZooKeeper to store the in-memory snapshots of the data and the transactional log of updates to the database.
    clientPort
    Port on which the ZooKeeper server listens for client connections.
    maxClientCnxns
    Maximum number of concurrent connections that a single client can make to a single member of the ZooKeeper ensemble. Default is 10.
  3. If you use an ensemble of ZooKeeper servers, perform the following tasks:
    1. Add the following server entries to the
      zoo.cfg
      file:
      server.1=<Host Name1>:<Port Number1>:<Port Number2> server.2=<Host Name1>:<Port Number1>:<Port Number2> server.3=<Host Name1>:<Port Number1>:<Port Number2> ... server.N=<Host Name1>:<Port Number1>:<Port Number2>
      Host Name
      refers to the host name of the ZooKeeper server, and
      Port Numbers 1 and 2
      refers to the ports that the ZooKeeper uses to communicate between the ZooKeeper servers.
      For example, the following entries indicate an ensemble of three ZooKeeper servers:
      server.1=PriHost:18046:18047 server.2=SecHost:18049:18050 server.3=TerHost:18052:18053
    2. Create a file named
      myid
      in the directory that you configure for the
      dataDir
      property in the
      zoo.cfg
      file.
    3. Open the
      myid
      file, specify the ID of the server based on the
      server.<Number>
      entry in the
      zoo.cfg
      file, and save the
      myid
      file.
      For example, if the host name is specified as
      server.2
      in the
      zoo.cfg
      file, specify 2 in the
      myid
      file.
    4. In the other ZooKeeper servers, add the same server entries in the
      zoo.cfg
      file, create the
      myid
      file, and enter the corresponding server ID to the
      myid
      file.

0 COMMENTS

We’d like to hear from you!