bluestore-block-db-size default size should be at least 4%
Bug #1827463 reported by
Ashley Lai
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
The ceph-osd charm sets the default bluestore db size at 1024 MB which is too small. The recommended bluestore db size is no less than 4% of the total block size.
https:/
db_partition_size = num_data_disks * 0.04 * disk_size
Default value from the charm:
# default sizes in MB
_default_size = {
'db': 1024,
'wal': 576,
'journal': 1024,
}
Changed in charm-ceph-osd: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in charm-ceph-osd: | |
assignee: | nobody → Sahid Orentino (sahid-ferdjaoui) |
Changed in charm-ceph-osd: | |
milestone: | none → 20.08 |
assignee: | Sahid Orentino (sahid-ferdjaoui) → nobody |
tags: | added: sts |
Changed in charm-ceph-osd: | |
assignee: | nobody → Ponnuvel Palaniyappan (pponnuvel) |
Changed in charm-ceph-osd: | |
milestone: | 20.08 → none |
description: | updated |
Changed in charm-ceph-osd: | |
status: | In Progress → New |
assignee: | Ponnuvel Palaniyappan (pponnuvel) → nobody |
Changed in charm-ceph-osd: | |
status: | New → Triaged |
Changed in charm-ceph-osd: | |
importance: | Medium → Wishlist |
To post a comment you must log in.
The 4% recommendation is generally accurate for rdb/cephfs. For object storage, this can trend higher when there are huge numbers of small objects.
Please be aware of Rocksdb limitations here. RocksDB will only place the next level of the dB on flash if there is enough room for the whole level. With ceph's default rocksdb settings, this means that sizes lockstep between roughly 3GB, 30GB, and 300GB [0]. Anything in-between results in wasted space.
[0] https:/ /github. com/facebook/ rocksdb/ wiki/Leveled- Compaction