Support DB cache devices for Ceph OSDs #142
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Support adding cache devices as an option to new Ceph OSDs. Available with the
--block.db
option flag toceph-volume lvm prepare
.Potentially also add method to add this cache later on too.
Ceph docs recommend at least 4% of the size of the device for the DB cache, so let's set our default to 10% for simplicity and to provide decent WAL area.
From https://docs.ceph.com/en/latest/rados/configuration/bluestore-config-ref/#sizing:
So 5% is probably OK instead.
We can implement this with LVM on a device first to keep things easier to manage and more automated.
So add a set of commands like so:
pvc storage osd db
parent command.pvc storage osd db vg
command to create/view/manage a DB device volume group.pvc storage osd add-db
command to add a DB LV to an existing OSD.pvc storage osd add
--db
flag to add a DB LV to a new OSD.All of these will be piped through to the relevant node just like other OSD commands.
closed via commit 838072d6d4890453f4e33e14636eaa9776eaf822
Ended up going with a requirement of fresh OSDs for this to work; it ended up being a major hassle to add a DB to an existing OSD, so the procedure must be a remove + rebalance + add-with-db-block. Otherwise, this is fully implemented in 0.9.36.
Actually closed via commit
6cef68d157
mentioned in commit
6cef68d157