2012-09-04 18:35:33 +00:00
|
|
|
=========================
|
|
|
|
Data Placement Overview
|
|
|
|
=========================
|
|
|
|
|
|
|
|
Ceph stores, replicates and rebalances data objects across a RADOS cluster
|
|
|
|
dynamically. With many different users storing objects in different pools for
|
|
|
|
different purposes on countless OSDs, Ceph operations require some data
|
2016-09-21 21:56:41 +00:00
|
|
|
placement planning. The main data placement planning concepts in Ceph include:
|
2012-09-04 18:35:33 +00:00
|
|
|
|
|
|
|
- **Pools:** Ceph stores data within pools, which are logical groups for storing
|
|
|
|
objects. Pools manage the number of placement groups, the number of replicas,
|
2017-12-11 16:09:25 +00:00
|
|
|
and the CRUSH rule for the pool. To store data in a pool, you must have
|
2016-09-21 21:56:41 +00:00
|
|
|
an authenticated user with permissions for the pool. Ceph can snapshot pools.
|
2013-11-22 23:13:49 +00:00
|
|
|
See `Pools`_ for additional details.
|
2016-09-21 21:56:41 +00:00
|
|
|
|
|
|
|
- **Placement Groups:** Ceph maps objects to placement groups (PGs).
|
2012-09-04 18:35:33 +00:00
|
|
|
Placement groups (PGs) are shards or fragments of a logical object pool
|
2016-09-21 21:56:41 +00:00
|
|
|
that place objects as a group into OSDs. Placement groups reduce the amount
|
|
|
|
of per-object metadata when Ceph stores the data in OSDs. A larger number of
|
|
|
|
placement groups (e.g., 100 per OSD) leads to better balancing. See
|
2013-01-26 00:14:12 +00:00
|
|
|
`Placement Groups`_ for additional details.
|
2012-09-04 18:35:33 +00:00
|
|
|
|
2016-09-21 21:56:41 +00:00
|
|
|
- **CRUSH Maps:** CRUSH is a big part of what allows Ceph to scale without
|
|
|
|
performance bottlenecks, without limitations to scalability, and without a
|
|
|
|
single point of failure. CRUSH maps provide the physical topology of the
|
|
|
|
cluster to the CRUSH algorithm to determine where the data for an object
|
|
|
|
and its replicas should be stored, and how to do so across failure domains
|
2013-01-26 00:14:12 +00:00
|
|
|
for added data safety among other things. See `CRUSH Maps`_ for additional
|
|
|
|
details.
|
2016-09-21 21:56:41 +00:00
|
|
|
|
2012-09-04 18:35:33 +00:00
|
|
|
When you initially set up a test cluster, you can use the default values. Once
|
|
|
|
you begin planning for a large Ceph cluster, refer to pools, placement groups
|
2016-09-21 21:56:41 +00:00
|
|
|
and CRUSH for data placement operations.
|
2012-09-04 18:35:33 +00:00
|
|
|
|
2013-01-26 00:14:12 +00:00
|
|
|
.. _Pools: ../pools
|
|
|
|
.. _Placement Groups: ../placement-groups
|
|
|
|
.. _CRUSH Maps: ../crush-map
|