100 likes | 406 Views
Introduction to ZooKeeper. Agenda. What is ZooKeeper (ZK) What ZK can do How ZK works ZK interface What ZK ensures. What is ZK. C entralized service for maintaining configuration information , naming, providing distributed synchronization , and providing group services .
E N D
Agenda • What is ZooKeeper (ZK) • What ZK can do • How ZK works • ZK interface • What ZK ensures
What is ZK • Centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. • Simply Put: Coordination Service For Distributed Systems
What ZK can do • Name Service • Configuration • Group Membership • Distributed Synchronization
ZK interfaces • Command Line Tool • Zookeeper API Bindings • Java • C
ZKensures • Sequential Consistency • Updates from a client will be applied in the order that they were sent. • Atomicity • Updates either succeed or fail. No partial results. • Single System Image • A client will see the same view of the service regardless of the server that it connects to. • Reliability • Once an update has been applied, it will persist from that time forward until a client overwrites the update. • Timeliness • The clients view of the system is guaranteed to be up-to-date within a certain time bound.
Cautions to take • Prefer small data size for each node (less than 1M) • One time trigger (add again and again if u need) • Dataset in all must fit in memory