From 4f3c21a8eaaf65d245f66b2ed231336afc4fb32a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 2 May 2022 17:40:32 +0100 Subject: [PATCH] blade: tweak rbd_cache settings --- ops/nixos/lib/blade.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ops/nixos/lib/blade.nix b/ops/nixos/lib/blade.nix index e8208b67d9..4459f4eb39 100644 --- a/ops/nixos/lib/blade.nix +++ b/ops/nixos/lib/blade.nix @@ -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;