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
₱1399.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781789610703
Vendor :
Canonical
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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 ₱260 each
Feature tick icon Exclusive print discounts
$279.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 ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 7,553.97
Ceph: Designing and Implementing Scalable Storage Systems
₱2551.99
Mastering Ceph
₱2500.99
Ceph Cookbook
₱2500.99
Total 7,553.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%
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
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
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
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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.