mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
2981770f8e
`osd pool default min size` affects not only write operations, but also read operations. Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
22 lines
993 B
Plaintext
22 lines
993 B
Plaintext
[global]
|
|
|
|
# By default, Ceph makes 3 replicas of RADOS objects. If you want to maintain four
|
|
# copies of an object the default value--a primary copy and three replica
|
|
# copies--reset the default values as shown in 'osd_pool_default_size'.
|
|
# If you want to allow Ceph to accept an I/O operation to a degraded PG,
|
|
# set 'osd_pool_default_min_size' to a number less than the
|
|
# 'osd pool default size' value.
|
|
|
|
osd_pool_default_size = 3 # Write an object 3 times.
|
|
osd_pool_default_min size = 2 # Accept an I/O operation to a PG that has two copies of an object.
|
|
|
|
# Ensure you have a realistic number of placement groups. We recommend
|
|
# approximately 100 per OSD. E.g., total number of OSDs multiplied by 100
|
|
# divided by the number of replicas (i.e., osd pool default size). So for
|
|
# 10 OSDs and osd pool default size = 4, we'd recommend approximately
|
|
# (100 * 10) / 4 = 250.
|
|
# always use the nearest power of 2
|
|
|
|
osd_pool_default_pg_num = 256
|
|
osd_pool_default_pgp_num = 256
|