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 librados application

We will now go through some example librados applications which use librados to get a better understanding of what you can accomplish with the library.

The following example will take you through the steps to create an application which, when given an image file as a parameter, will store the image as an object in a Ceph cluster and store various attributes about the image file as object attributes. The application will also allow you to retrieve the object and export it as an image file. This example will be written in Python, which is also supported by librados. The following example also uses the Python Imaging Library (PIL) to read an image's size and the Argument Parser library to read command-line parameters: ...

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