Use this information to understand how colocation works and its advantages.
You can colocate containerized Ceph daemons on the same host.
The following are the advantages of colocating some of the services that Ceph offers:
Significant improvement in total cost of ownership (TCO) at small scale
Reduction from six hosts to three for the minimum configuration
Easier upgrade
Better resource isolation
How colocation works
With the help of the cephadm orchestrator, you can colocate one daemon from the following list with one or more OSD daemons (ceph-osd):
Ceph Monitor (ceph-mon) and Ceph Manager (ceph-mgr) daemons
NFS service (nfs service ) for Ceph Object Gateway (nfs service)
RBD Mirror (rbd-mirror)
Observability Stack (Grafana)
Additionally, for Ceph Object Gateway (radosgw) and Ceph File System (ceph-mds), you can colocate either with an OSD daemon plus a daemon from the previous list, excluding RBD mirror.
Note:
Colocating two of the same kind of daemons on a specific node is not supported.
Because ceph-mon and ceph-mgr work together closely they do not count as two separate daemons for the purposes of colocation.
Colocate the Ceph Object Gateway with Ceph OSD containers to increase performance.
Colocation examples
The following examples demonstrate minimum cluster sizes that comply with the listed rules.
Example 1
Table 1 and Figure 1 provide an example of colocated daemons with the following specifications:
Media
Full flash systems (SSDs)
Use case
Block (Ceph Block Device) and File (CephFS), or Object (Ceph Object Gateway)
Number of nodes
3
Replication scheme
2
Table 1. Colocated daemons: example 1
Host
Daemon
Daemon
Daemon
host1
OSD
Monitor/Manager
Grafana
host2
OSD
Monitor/Manager
RGW or CephFS
host3
OSD
Monitor/Manager
RGW or CaphFS
Note: The minimum size for a storage cluster with three replicas is four nodes. Similarly, the size of a storage cluster with two replicas is a three node cluster. It is a requirement to have a certain number of nodes for the replication factor with an extra node in the cluster to avoid extended periods with the cluster in a degraded state.
Figure 1. Colocated daemons: example 1
Example 2
Table 2 and Figure 2 provide an example of colocated daemons with the following specifications:
Media
Full flash systems (SSDs) or spinning devices (HDDs)
Table 3 and Figure 3 provide an example of colocated daemons with the following specifications:
Media
Full flash systems (SSDs) or spinning devices (HDDs)
Use case
Block (Ceph Block Device), Object (Ceph Object Gateway), and NFS for Ceph Object Gateway
Number of nodes
4
Replication scheme
3
Table 3. Colocated daemons: example 3
Host
Daemon
Daemon
Daemon
host1
OSD
Grafana
host2
OSD
Monitor/Manager
RGW
host3
OSD
Monitor/Manager
RGW
host4
OSD
Monitor/Manager
NFS (RGW)
Figure 3. Colocated daemons: example 3
The differences between colocation and non-colocated daemons
Figure 4 and Figure 5 show the differences between storage clusters with colocated and non-colocated daemons.
Figure 4. Example of colocated daemonsFigure 5. Non-colocated Daemons