Skip to Main Content
Ceph: Designing and Implementing Scalable Storage Systems
book

Ceph: Designing and Implementing Scalable Storage Systems

by Michael Hackett, Vikhyat Umrao, Karan Singh, Nick Fisk
January 2019
Intermediate to advanced content levelIntermediate to advanced
606 pages
15h 1m
English
Packt Publishing
Content preview from Ceph: Designing and Implementing Scalable Storage Systems

Example of the librados application that uses watchers and notifiers

The following librados application is written in C and shows how to use the watch or notify functionality in RADOS. Ceph enables a client to create a watcher on an object and receive notifications from a completely separate client connected to the same cluster.

The watcher functionality is implemented via callback functions. When you call the librados function to create the watcher, two of the arguments are for callback functions, one is for what to do when a notification is received and another is for what to do if the watcher loses contact or encounters an error with the object. These callback functions then contain the code you want to run when a notification or error ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OpenStack for Architects - Second Edition

OpenStack for Architects - Second Edition

Ben Silverman, Michael Solberg
Kubernetes Patterns

Kubernetes Patterns

Bilgin Ibryam, Roland Huß
Kubernetes Best Practices

Kubernetes Best Practices

Brendan Burns, Eddie Villalba, Dave Strebel, Lachlan Evenson
Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas

Publisher Resources

ISBN: 9781788295413