Book Image

Learning Ceph - Second Edition

By : Karan Singh, Vaibhav Bhembre, Anthony D'Atri
Book Image

Learning Ceph - Second Edition

By: Karan Singh, Vaibhav Bhembre, Anthony D'Atri

Overview of this book

Learning Ceph, Second Edition will give you all the skills you need to plan, deploy, and effectively manage your Ceph cluster. You will begin with the first module, where you will be introduced to Ceph use cases, its architecture, and core projects. In the next module, you will learn to set up a test cluster, using Ceph clusters and hardware selection. After you have learned to use Ceph clusters, the next module will teach you how to monitor cluster health, improve performance, and troubleshoot any issues that arise. In the last module, you will learn to integrate Ceph with other tools such as OpenStack, Glance, Manila, Swift, and Cinder. By the end of the book you will have learned to use Ceph effectively for your data storage requirements.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Logs


Ceph performs extensive logging. In Chapter 4, Planning your the Deployment, we discussed the need to provision ample drive space to accommodate spikes in log volume and to allow healthy retention intervals. In Chapter 8, Ceph Architecture: Under the Hood we will explore the severity levels of Ceph's log messages.

Ceph can be configured to log directly through the central syslog or rsyslog service, but by default it writes to local files. These are managed by the stock Linux logrotate facility. Here's the default rotation stanza that the Ceph Jewel release installs.

# cat /etc/logrotate.d/ceph.logrotate/var/log/ceph/*.log {    rotate 7    daily    compress    sharedscripts    postrotate        killall -q -1 ceph-mon ceph-mds ceph-osd ceph-fuse radosgw   
            || true    endscript    missingok    notifempty    su root ceph}

The default retention is 7 days, which this author at times finds to be too short. To increase to four weeks, replace the 7 with 30, but be careful that the filesystem...