mirror of
https://github.com/ceph/ceph
synced 2024-12-12 14:39:05 +00:00
8af5eba024
Because `osd pool default min size = 1` is dangerous and may cause data loss. Signed-off-by: Alfredo Deza <adeza@redhat.com>
21 lines
930 B
Plaintext
21 lines
930 B
Plaintext
[global]
|
|
|
|
# By default, Ceph makes 3 replicas of objects. If you want to make 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 write a lesser number of copies in a degraded
|
|
# state, 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 # Allow writing two copies in a degraded state.
|
|
|
|
# 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.
|
|
|
|
osd pool default pg num = 250
|
|
osd pool default pgp num = 250
|