]> git-server-git.apps.pok.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>
Mon, 30 Aug 2021 15:36:54 +0000 (23:36 +0800)
commit5b8020522e6da8cc799dfda96a252af85b18308a
treef28f4ac152066a9f2acd618ede704d824b80cf24
parent3376260f59fe18e58dd2851227d8dbb38efed644
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>
(cherry picked from commit c1cea71299300ed2fd2a34d5c10a1948f3016031)

Cherry-pick notes:
- Fixed Invalid command: missing required parameter pg_num(<int[0-]>)
qa/tasks/cephfs/filesystem.py
qa/tasks/cephfs/test_admin.py
qa/tasks/cephfs/test_data_scan.py
qa/tasks/cephfs/test_misc.py