From: Gil Bregman Date: Tue, 19 Nov 2024 11:51:37 +0000 (+0200) Subject: mgr/cephadm: Add resource limits to nvmeof configuration X-Git-Tag: v20.0.0~650^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F60769%2Fhead;p=ceph.git mgr/cephadm: Add resource limits to nvmeof configuration Fixes https://tracker.ceph.com/issues/68967 Signed-off-by: Gil Bregman --- diff --git a/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 b/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 index 760bc97e5153..2d69dccdc546 100644 --- a/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 +++ b/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 @@ -22,6 +22,10 @@ ping_spdk_under_lock = {{ spec.ping_spdk_under_lock }} enable_monitor_client = {{ spec.enable_monitor_client }} max_hosts_per_namespace = {{ spec.max_hosts_per_namespace }} max_namespaces_with_netmask = {{ spec.max_namespaces_with_netmask }} +max_subsystems = {{ spec.max_subsystems }} +max_namespaces = {{ spec.max_namespaces }} +max_namespaces_per_subsystem = {{ spec.max_namespaces_per_subsystem }} +max_hosts_per_subsystem = {{ spec.max_hosts_per_subsystem }} [gateway-logs] log_level = {{ spec.log_level }} diff --git a/src/pybind/mgr/cephadm/tests/test_services.py b/src/pybind/mgr/cephadm/tests/test_services.py index 824e37cf4d49..863bd1c22e5e 100644 --- a/src/pybind/mgr/cephadm/tests/test_services.py +++ b/src/pybind/mgr/cephadm/tests/test_services.py @@ -411,6 +411,10 @@ ping_spdk_under_lock = False enable_monitor_client = True max_hosts_per_namespace = 1 max_namespaces_with_netmask = 1000 +max_subsystems = 128 +max_namespaces = 1024 +max_namespaces_per_subsystem = 256 +max_hosts_per_subsystem = 32 [gateway-logs] log_level = INFO