DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Run a Ceph Cluster With Flocker on Your Laptop

Run a Ceph Cluster With Flocker on Your Laptop

The great part about releasing a Ceph driver is that we can let anyone who wants to try Flocker, Docker, and Ceph together to do so on their own laptop.

Ryan Wallner user avatar by
Ryan Wallner
·
Jun. 19, 16 · Tutorial
Like (1)
Save
Tweet
Share
3.24K Views

Join the DZone community and get the full member experience.

Join For Free

At ClusterHQ, our users have asked us for Ceph support. So, here is a first glimpse into the support Flocker provides for Ceph. The great part about releasing a Ceph driver is that we can let anyone who wants to try Flocker, Docker, and Ceph together to do so on their own laptop — no cloud provider account needed!

In this blog post, we will introduce you to our Ceph driver and show you a demo of running a Ceph cluster that works with Flocker and Docker. The post also includes resources on how you can get started yourself.

Introduction

What is Ceph?

Ceph is a distributed object store and file system designed to provide excellent performance, reliability and scalability. Ceph clusters allow you to access object storage through file systems with Ceph FS and block devices via Ceph RBD. To read more about Ceph, visit the documentation.

By using Ceph and Flocker together, you are able to automatically provision and manage Ceph RBD devices to your containers. Application containers accessing Ceph storage can move around your infrastructure freely while Flocker automates the movement of your data from the container's original location to its destination without any need for you to manage Ceph. By doing so, you can decrease application fail-over times, increase the efficiency for distributed database recovery, and keep your data safe and persisted.

Demo

Ceph Flocker Vagrant Virtualbox

In this demo, we are using Vagrant to automatically deploy Flocker, Ceph, and Docker to a local cluster running on Oracle VirtualBox. This demo can be run easily on your laptop or desktop as long as you have both Vagrant and VirtualBox installed. To read more on how to run the demo yourself, scroll to the links just below the video.

You may also watch the asciinema version of the video so you can follow along and copy and paste commands used in the demo.

If you're interested in trying this out on your own laptop, you can visit this GitHub repository and follow the README to run the demo.

Also, if you would like to use the Ceph-Flocker driver for your Flocker environment but do not want to use Vagrant or Virtualbox, you can navigate the driver's GitHub page.

Using the driver in your Flocker environment means you can deploy Ceph both locally or in any cloud environment that supports running Ceph to get the ultimate flexibility out of your storage and container environment.

You can install the driver and reference the driver in your dataset agent.yml using the following example:

version: 1
  control-service:
    hostname: "user.controlserver.example.com"
  dataset:
    backend: "ceph_flocker_driver"
    cluster_name: "Ceph cluster name, defaults to ''"
    user_id: "Ceph user ID, defaults to 'admin'"
    ceph_conf_path: "path to ceph conf for rados, defaults to '/etc/ceph/ceph.conf'"
    storage_pool: "name of storage pool to use, defaults to 'rbd'"

Conclusion

That's it for now. We would love to know what you think about using Ceph with Flocker to manage your persistent block storage for containers so feel free to reach out to any of our channels for feedback, support, comments and questions.

We'd love to hear your feedback!

Ceph (software) Docker (software)

Published at DZone with permission of Ryan Wallner, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Image Classification With DCNNs
  • (Deep) Cloning Objects in JavaScript
  • Best Practices for Writing Clean and Maintainable Code
  • How to Configure AWS Glue Job Using Python-Based AWS CDK

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: