Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Apache ZooKeeper Essentials

You're reading from   Apache ZooKeeper Essentials A fast-paced guide to using Apache ZooKeeper to coordinate services in distributed systems

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784391324
Length 168 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Saurav Haloi Saurav Haloi
Author Profile Icon Saurav Haloi
Saurav Haloi
Arrow right icon
View More author details
Toc

Configuring a ZooKeeper server


In this section, we will look at the various configuration parameters of a ZooKeeper server. These parameters are defined in the configuration file called zoo.cfg. Servers deployed in a ZooKeeper service can share a file if they are configured for the same applications. You have already learned about the myid file that distinguishes the servers from one another in the same ensemble. While the default options in this configuration file usually serve most common use cases for the evaluation or testing of applications, in a production environment it's very important that the values for these parameters are set properly with adequate reasoning.

It's also possible to set many of the configuration parameters using Java system properties with zookeeper.propertyName. These properties are set using the -D option when starting the server. However, parameters defined in the configuration file have precedence over the ones set with -D options in the Java command line.

Minimum...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime