]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: update QOS minimum BandWidth value and IOPS max value
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Fri, 30 May 2025 11:35:29 +0000 (17:05 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Mon, 27 Apr 2026 12:49:15 +0000 (18:19 +0530)
Fixes: https://tracker.ceph.com/issues/69458
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
src/pybind/mgr/nfs/qos_conf.py

index ea2ccdd5a7eab5e4b9b9c5f10b1869e75710babf..3626be025aa361ac83060e548f180947f1165b1a 100644 (file)
@@ -38,19 +38,19 @@ class QOSType(Enum):
 
 
 def _validate_qos_bw(bandwidth: str) -> int:
-    min_bw = 1024 * 1024  # 1MiB
+    min_bw = 128 * 1024  # 128KiB
     max_bw = 100 * 1024 * 1024 * 1024  # 100GiB
     bw_bytes = with_units_to_int(bandwidth)
     if bw_bytes != 0 and (bw_bytes < min_bw or bw_bytes > max_bw):
         raise Exception(
-            f"Provided bandwidth value is not in range, Please enter a value between {min_bw} (1MiB) and {max_bw} (100GiB) bytes per second."
+            f"Provided bandwidth value is not in range, Please enter a value between {min_bw} (128KiB) and {max_bw} (100GiB) bytes per second."
         )
     return bw_bytes
 
 
 def _validate_qos_ops(count: int) -> int:
     min_cnt = 10
-    max_cnt = 409600
+    max_cnt = 1638400
     if count != 0 and (count < min_cnt or count > max_cnt):
         raise Exception(
             f"Provided IOS count value is not in range, Please enter a value between {min_cnt} and {max_cnt} count per second."