ZooKeeper
O'Reilly Media (Verlag)
9781449361303 (ISBN)
Building distributed applications is difficult enough without having to coordinate the actions that make them work. This practical guide shows how Apache ZooKeeper helps you manage distributed systems, so you can focus mainly on application logic. Even with ZooKeeper, implementing coordination tasks is not trivial, but this book provides good practices to give you a head start, and points out caveats that developers and administrators alike need to watch for along the way.
In three separate sections, ZooKeeper contributors Flavio Junqueira and Benjamin Reed introduce the principles of distributed systems, provide ZooKeeper programming techniques, and include the information you need to administer this service.
- Learn how ZooKeeper solves common coordination tasks
- Explore the ZooKeeper API’s Java and C implementations and how they differ
- Use methods to track and react to ZooKeeper state changes
- Handle failures of the network, application processes, and ZooKeeper itself
- Learn about ZooKeeper’s trickier aspects dealing with concurrency, ordering, and configuration
- Use the Curator high-level interface for connection management
- Become familiar with ZooKeeper internals and administration tools
Flavio Junqueira is a Senior Research Scientist with Yahoo Research and leads the Scalable Computing group in Barcelona, Spain. He holds a PhD degree from University of California San Diego (UCSD) in computer science. His main research interest is distributed systems and algorithms, and he has focused on topics such as dependability, concurrency, and replication. He is the recipient of awards and nominations, such as the CSE Department best PhD dissertation award, a nomination to the ACM PhD Dissertation award, and best paper awards at ACM CIKM 2009 and USENIX ATC 2010.
Benjamin Reed is a 1337 Hacker at osmeta, Inc. His previous positions include Principal Research Scientist at Yahoo! Research and Research Staff Member at IBM Almaden Research. He holds a PhD degree from University o California, Santa Crz in computer science. He has worked in the area of distributed computing, big data processing, distributed storage, systems management an embedded frameworks. He participated in various open source projects such as Hadoop and Linux. He helped start the Pig, Zookeeper, and BookKeeper projects hosted by the Apache Software Foundation.
ZooKeeper Concepts and Basics
Chapter 1 Introduction
The ZooKeeper Mission
Example: Master-Worker Application
Why Is Distributed Coordination Hard?
ZooKeeper Is a Success, with Caveats
Chapter 2 Getting to Grips with ZooKeeper
ZooKeeper Basics
ZooKeeper Architecture
Getting Started with ZooKeeper
Implementation of a Master-Worker Example
Takeaway Messages
Programming with ZooKeeper
Chapter 3 Getting Started with the ZooKeeper API
Setting the ZooKeeper CLASSPATH
Creating a ZooKeeper Session
Getting Mastership
Registering Workers
Queuing Tasks
The Admin Client
Takeaway Messages
Chapter 4 Dealing with State Change
One-Time Triggers
Getting More Concrete: How to Set Watches
A Common Pattern
The Master-Worker Example
An Alternative Way: Multiop
Watches as a Replacement for Explicit Cache Management
Ordering Guarantees
The Herd Effect and the Scalability of Watches
Takeaway Messages
Chapter 5 Dealing with Failure
Recoverable Failures
Unrecoverable Failures
Leader Election and External Resources
Takeaway Messages
Chapter 6 ZooKeeper Caveat Emptor
Using ACLs
Session Recovery
Version Is Reset When Znode Is Re-Created
The sync Call
Ordering Guarantees
Data and Child Limits
Embedding the ZooKeeper Server
Takeaway Messages
Chapter 7 The C Client
Setting Up the Development Environment
Starting a Session
Bootstrapping the Master
Taking Leadership
Assigning Tasks
Single-Threaded versus Multithreaded Clients
Takeaway Messages
Chapter 8 Curator: A High-Level API for ZooKeeper
The Curator Client
Fluent API
Listeners
State Changes in Curator
A Couple of Edge Cases
Recipes
Takeaway Messages
Administering ZooKeeper
Chapter 9 ZooKeeper Internals
Requests, Transactions, and Identifiers
Leader Elections
Zab: Broadcasting State Updates
Observers
The Skeleton of a Server
Local Storage
Servers and Sessions
Servers and Watches
Clients
Serialization
Takeaway Messages
Chapter 10 Running ZooKeeper
Configuring a ZooKeeper Server
Configuring a ZooKeeper Ensemble
Reconfiguration
Quotas
Multitenancy
File System Layout and Formats
Four-Letter Words
Monitoring with JMX
Tools
Takeaway Messages
Index
Colophon
| Erscheint lt. Verlag | 31.12.2013 |
|---|---|
| Zusatzinfo | black & white illustrations |
| Verlagsort | Sebastopol |
| Sprache | englisch |
| Maße | 178 x 233 mm |
| Gewicht | 395 g |
| Einbandart | kartoniert |
| Themenwelt | Mathematik / Informatik ► Informatik ► Netzwerke |
| ISBN-13 | 9781449361303 / 9781449361303 |
| Zustand | Neuware |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
aus dem Bereich