Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Mastering Ceph
Mastering Ceph

Mastering Ceph: Infrastructure storage solutions with the latest Ceph release , Second Edition

eBook
€20.98 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Mastering Ceph

Planning for Ceph

The first chapter of this book covers all the areas you need to consider when deploying a Ceph cluster, from the initial planning stages through to hardware choices. The topics we will cover include the following:

  • What Ceph is and how it works
  • Good use cases for Ceph and important considerations
  • Advice and best practices on infrastructure design
  • Ideas about planning a Ceph project

What is Ceph?

Ceph is an open source, distributed, scaled-out, software-defined storage system that can provide block, object, and file storage. Through the use of the Controlled Replication Under Scalable Hashing (CRUSH) algorithm, Ceph eliminates the need for centralized metadata and can distribute the load across all the nodes in the cluster. Since CRUSH is an algorithm, data placement is calculated rather than based on table lookups, and can scale to hundreds of petabytes without the risk of bottlenecks and the associated single points of failure. Clients also form direct connections with the required OSDs, which also eliminates any single points becoming bottlenecks.

Ceph provides three main types of storage: block storage via the RADOS Block Device (RBD), file storage via CephFS, and object storage via RADOS Gateway, which provides S3 and Swift-compatible storage.

Ceph is...

How Ceph works

The core storage layer in Ceph is the Reliable Autonomous Distributed Object Store (RADOS), which, as the name suggests, provides an object store on which the higher-level storage protocols are built. The RADOS layer in Ceph consists of a number of object storage daemons (OSDs). Each OSD is completely independent and forms peer-to-peer relationships to form a cluster. Each OSD is typically mapped to a single disk, in contrast to the traditional approach of presenting a number of disks combined into a single device via a RAID controller to the OS.

The other key component in a Ceph cluster is the monitors. These are responsible for forming a cluster quorum via the use of Paxos. The monitors are not directly involved in the data path and do not have the same performance requirements of OSDs. They are mainly used to provide a known cluster state, including membership...

Ceph use cases

Before jumping into specific use cases, let's look at the following key points that should be understood and considered before thinking about deploying a Ceph cluster:

  • Ceph is not a storage array: Ceph should not be compared to a traditional scale-up storage array; it is fundamentally different, and trying to shoe horn Ceph into that role using existing knowledge, infrastructure, and expectations will lead to disappointment. Ceph is software-defined storage with internal data movements that operate over TCP/IP networking, introducing several extra layers of technology and complexity compared to a simple SAS cable at the rear of a traditional storage array. Work is continuing within the Ceph project to expand its reach into areas currently dominated by legacy storage arrays with support for iSCSI and NFS, and with each release, Ceph gets nearer to achieving...

Infrastructure design

While considering infrastructure design, we need to take care of certain components. We will now briefly look at these components.

SSDs

SSDs are great. Their price has been lowered enormously over the last 10 years, and all evidence suggests that it will continue to do so. They have the ability to offer access times several orders of magnitude lower than rotating disks and consume less power.

One important concept to understand about SSDs is that, although their read and write latencies are typically measured in tens of microseconds, to overwrite existing data in a flash block, requires the entire flash block to be erased before the write can happen. A typical flash block size in an SSD may be 128k, and...

How to plan a successful Ceph implementation

The following are some general rules for deploying a successful Ceph cluster:

  • Do use 10 G networking as a minimum
  • Do research and test the correctly sized hardware you wish to use
  • Don't use the no barrier mount option with filestore
  • Don't configure pools with a size of two or a min_size of one
  • Don't use consumer SSDs
  • Don't use raid controllers in write back mode without battery protection
  • Don't use configuration options you don't understand
  • Do implement some form of change management
  • Do carry out power-loss testing
  • Do have an agreed backup and recovery plan

Understanding your requirements and how they relate to Ceph

As we have discussed, Ceph is not...

Summary

In this chapter, you learned all of the necessary steps to allow you to successfully plan and implement a Ceph project. You also learned about the available hardware choices, how they relate to Ceph's requirements, and how they affect both Ceph's performance and reliability. Finally, you also learned of the importance of the processes and procedures that should be in place to ensure a healthy operating environment for your Ceph cluster.

The following chapters in this book will build on the knowledge you have learned in this chapter and help you put it to use to enable you to actually deploy, manage, and utilize Ceph storage.

Questions

  1. What does RADOS stand for?
  2. What does CRUSH stand for?
  3. What is the difference between consumer and enterprise SSDs?
  4. Does Ceph prefer the consistency or availability of your data?
  5. Since the Luminous release, what is the default storage technology?
  6. Who created Ceph?
  7. What are block devices created on Ceph called?
  8. What is the name of the component that actually stores data in Ceph?
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore the latest features of Ceph's Mimic release
  • Get to grips with advanced disaster and recovery practices for your storage
  • Harness the power of Reliable Autonomic Distributed Object Store (RADOS) to help you optimize storage systems

Description

Ceph is an open source distributed storage system that is scalable to Exabyte deployments. This second edition of Mastering Ceph takes you a step closer to becoming an expert on Ceph. You’ll get started by understanding the design goals and planning steps that should be undertaken to ensure successful deployments. In the next sections, you’ll be guided through setting up and deploying the Ceph cluster with the help of orchestration tools. This will allow you to witness Ceph’s scalability, erasure coding (data protective) mechanism, and automated data backup features on multiple servers. You’ll then discover more about the key areas of Ceph including BlueStore, erasure coding and cache tiering with the help of examples. Next, you’ll also learn some of the ways to export Ceph into non-native environments and understand some of the pitfalls that you may encounter. The book features a section on tuning that will take you through the process of optimizing both Ceph and its supporting infrastructure. You’ll also learn to develop applications, which use Librados and distributed computations with shared object classes. Toward the concluding chapters, you’ll learn to troubleshoot issues and handle various scenarios where Ceph is not likely to recover on its own. By the end of this book, you’ll be able to master storage management with Ceph and generate solutions for managing your infrastructure.

Who is this book for?

If you are a storage professional, system administrator, or cloud engineer looking for guidance on building powerful storage solutions for your cloud and on-premise infrastructure, this book is for you.

What you will learn

  • Plan, design and deploy a Ceph cluster
  • Get well-versed with different features and storage methods
  • Carry out regular maintenance and daily operations with ease
  • Tune Ceph for improved ROI and performance
  • Recover Ceph from a range of issues
  • Upgrade clusters to BlueStore

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 05, 2019
Length: 356 pages
Edition : 2nd
Language : English
ISBN-13 : 9781789615104
Vendor :
Canonical
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Mar 05, 2019
Length: 356 pages
Edition : 2nd
Language : English
ISBN-13 : 9781789615104
Vendor :
Canonical
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 111.97
Ceph: Designing and Implementing Scalable Storage Systems
€37.99
Mastering Ceph
€36.99
Ceph Cookbook
€36.99
Total 111.97 Stars icon

Table of Contents

17 Chapters
Section 1: Planning And Deployment Chevron down icon Chevron up icon
Planning for Ceph Chevron down icon Chevron up icon
Deploying Ceph with Containers Chevron down icon Chevron up icon
BlueStore Chevron down icon Chevron up icon
Ceph and Non-Native Protocols Chevron down icon Chevron up icon
Section 2: Operating and Tuning Chevron down icon Chevron up icon
RADOS Pools and Client Access Chevron down icon Chevron up icon
Developing with Librados Chevron down icon Chevron up icon
Distributed Computation with Ceph RADOS Classes Chevron down icon Chevron up icon
Monitoring Ceph Chevron down icon Chevron up icon
Tuning Ceph Chevron down icon Chevron up icon
Tiering with Ceph Chevron down icon Chevron up icon
Section 3: Troubleshooting and Recovery Chevron down icon Chevron up icon
Troubleshooting Chevron down icon Chevron up icon
Disaster Recovery Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(4 Ratings)
5 star 50%
4 star 25%
3 star 25%
2 star 0%
1 star 0%
Carl Meijer Nov 06, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The author knows Ceph and I learnt a great deal from the book. However, it was more effort understanding the author's points than it should have been:1. The author makes pretty demanding assumptions of your knowledge of Ceph2. Material is presented in strange ways, e.g. Chapter 4 covers exporting CephFS via NFS but CephFS is only described properly in the following chapter. Similarly, chapter 3 describes how to upgrade filestore to BlueStore which might be useful but is better relegated to an appendix or later in the book when the basic functionality of Ceph has been described.3. Getting the code to work was a bit of a struggle4. Some mistakes, e.g. in Chapter 5 where the author describes how to set up a metadata service (MDS), the screen shots seem to show the installation of the Rados Gateway (RGW)
Amazon Verified review Amazon
Allen J Porter Aug 31, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm a ceph hobbyist, and familiar with other distributed file systems. I purchased this book to learn more in depth about the ceph cluster I run at home on a few nodes supporting a kubernetes cluster.After having a disk go bad, and having a bit truble of trouble working through the repair (which was successful) I thought I should learn more detail.This book did a great job of increasing my knowledge about how ceph works, the major components and features.. I am now able to do basic administrative operations, though I probably won't deploy code I still thought it was useful to see what was possible.
Amazon Verified review Amazon
Allen Murphey May 19, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A great crash-course getting started introduction to getting into Ceph. While Vagrant and ansible deployment for the test lab glossed over a lot of the "how-to" I'd like to have seen, it was great at getting a working environment going quickly to start hands on with. Much of that deployment is very re-usable as well and you learn a lot by digging in and tweaking it. But, past the headlong rush of deployment, there is a well paced step through everything with a lot of immediately usable concept followed by tips and use. This is a great companion to the Ceph Cookbook from the same group and I am extremely glad I got them both together. Each stands alone but does work well with the other. Despite being for a few revs back version of Ceph, it is current enough to still be practical and useful and I was able to put this book to work for real useful results at work right away. I tried reading the well written Ceph docs from the project itself, but it was easy to get lost in the maze. This book was a straight path through and past the parts of Ceph that made the docs much more useful much more quickly.
Amazon Verified review Amazon
Ranon Apr 21, 2021
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
Das Buch ist gut lesbar, man kann es recht schnell durcharbeiten. Es empfiehlt schon ein wenig Hands-On-Erfahrung zu haben, fängt dann aber bei 0 an und besteht aus Unmengen Kommandozeilen-Screenshots, die die Installation oder Konfiguration diverse Komponenten und Optionen erklären. Ohne diesem "Füllmaterial" wäre das Buch gefühlt halb so umfangreich. Bei den komplexeren Themen wurde meines Erachtens eine gute Mischung aus Tiefgang und verständlicher Erläuterung für den Alltag gewählt. Der Ceph Object Storage, ein großes und komplexes (aber wichtiges) Thema für sich, fehlt völlig -- das darf nicht sein!Es gibt keine echte Alternative, und für einen Einstieg durchaus geeignet. Der Schreibstil ist super, hätte man die unnötigen Konfigurationsanleitungen durch eine brauchbare Object-Storage-Einführung ersetzt, wären die fünf Sterne voll verdient.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.