]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: use the pg autoscale mode to calcuate the pg_num
authorXiubo Li <xiubli@redhat.com>
Mon, 26 Apr 2021 08:24:31 +0000 (16:24 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 27 Jul 2021 01:48:56 +0000 (09:48 +0800)
commitc1cea71299300ed2fd2a34d5c10a1948f3016031
treeb6772a09ffb65864d33c0fd1a5f2787249c6ce06
parentc7837484d9c22887b1595dc44b14ac59e0b7957b
qa: use the pg autoscale mode to calcuate the pg_num

Setting the pg_num to 8 is too small that some osds maybe not covered by the
pools, some osds maybe overloaded. Remove the hardcodeing pg_num here and let
the pg autoscale mode to calculate it as needed, and at the same time set the
pg_num_min to 64 to avoid the pg_num to small.

If ec pool is used, for the test cases most datas will go to the ec pool and
the primary replicated pool will store a small amount of metadata for all the
files only, so set the target size ratio to 0.05 should be enough.

Fixes: https://tracker.ceph.com/issues/45434
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/filesystem.py
qa/tasks/cephfs/test_admin.py
qa/tasks/cephfs/test_data_scan.py
qa/tasks/cephfs/test_misc.py