blade: tweak rbd_cache settings

This commit is contained in:
Luke Granger-Brown 2022-05-02 17:40:32 +01:00
parent 98a1ed6300
commit 4f3c21a8ea

View file

@ -165,6 +165,16 @@ in {
mgr.daemons = [ config.networking.hostName ];
mgr.enable = config.services.ceph.mon.enable;
rgw.enable = true;
client.enable = true;
client.extraConfig = {
"client.libvirt" = {
rbd_cache = "true";
rbd_cache_policy = "writeback";
rbd_cache_size = "2Gi";
rbd_cache_max_dirty = "1792Mi";
rbd_cache_target_dirty = "128Mi";
};
};
};
systemd.services.ceph-osd-lvm-activate = lib.mkIf config.services.ceph.osd.enable {
enable = true;