ceph base #5

3 machines, 6 units

Basic Ceph Cluster

This example bundle deploys a Ceph (Luminous) cluster on Ubuntu 16.04 LTS (Xenial).

Requirements

This example bundle is designed to run on bare metal using Juju with [MAAS]; you will need to have setup a [MAAS][] deployment with a minimum of 3 physical servers prior to using this bundle.

Certain configuration options within the bundle may need to be adjusted prior to deployment to fit your particular set of hardware. For example, network device names and block device names can vary.

Servers should have:

  • A minimum of 8GB of physical RAM.
  • Enough CPU cores to support your capacity requirements.
  • Two disks (identified by /dev/sda and /dev/sdb); the first is used by MAAS for the OS install, the second for Ceph storage.

Components

  • 3 Nodes for Ceph OSDs
  • 3 Ceph monitors in LXD containers on the OSD machines

All physical servers (not LXD containers) will also have NTP installed and configured to keep time in sync.

To horizontally scale Ceph:

juju add-unit ceph-osd # Add one more unit
juju add-unit -n50 ceph-osd # add 50 more units

Ensuring it's working

To ensure your cluster is functioning correctly, run through the following commands.

Connect to a monitor shell:

juju ssh ceph-mon/0

Check that the cluster is healthy:

sudo ceph -s

Bundle configuration