✨ Feature
ZooKeeper is a centralized service that plays a critical role in maintaining configuration information, providing distributed synchronization, managing naming services, and offering group services. Germain relies on ZooKeeper as an essential component of its infrastructure.
⬇️ Download
ZooKeeper 3.6.3 or later is supported.
🚀 Deploy
|
Step |
Action / Details |
|---|---|
|
Extract archive |
Extract the archive to a directory of your choice. In this example, we will use |
|
Create config clone |
Create a clone of the sample config:
|
|
Update dataDir |
Update the
|
|
Disable admin server |
Add the following entries to the end of
|
⏯️ Start ZooKeeper
This startup method is sufficient for a development or test environment. For a production environment, it is recommended to run ZooKeeper instances as a service.
|
Method |
Command / Details |
|---|---|
|
Run via shell (Linux) |
Run ZooKeeper via the shell (on Linux):
|
|
Run via command (Windows) |
Run ZooKeeper via command (on Windows):
|
⚙️ Run ZooKeeper as a service on Windows
|
Step |
Action / Details |
|---|---|
|
Copy service files |
Copy |
|
Install service |
From an administrative command line, run:
|
|
Start service |
Start the Apache ZooKeeper Windows Service using your preferred method. |
🌱 Bootstrap a ZooKeeper deployment
|
Step |
Action / Details |
|---|---|
|
Start command line |
Start the ZK command line via:
|
|
Execute bootstrap commands |
Execute the following commands from within Note: The name of the environment in this case will be "germain". Change this value only if you plan to host multiple APM environments on the same ZooKeeper cluster, such as "prod" and "stage".
|
To import existing settings from common.properties, build and run the germain-apm\Util\ZkConfig module. The utility requires three arguments:
|
Argument |
Description |
|---|---|
|
ZooKeeper target |
ZooKeeper target IP and port. |
|
Config root |
Config root to store the setting under. |
|
Path to properties |
Path to |
📝 Example
Example:
arduinoCopy codejava com.germainsoftware.apm.zkconfig.ZKConfig 127.0.0.1:2181 /config/germain/application common.properties
Alternatively, you can use the commands found in {serviceDistroDirectory}\install\zookeeper\bootstrap.zk to populate common bootstrap settings.