]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: descrease pgbench scale factor to 32 for postgresql database test 53279/head
authorXiubo Li <xiubli@redhat.com>
Tue, 5 Sep 2023 00:50:37 +0000 (08:50 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 5 Sep 2023 01:00:29 +0000 (09:00 +0800)
The scale factor will depend on the node's performance and disk sizes
being used to run the test, and 500 seems too large here as a common
test case without knowing the nodes' configuration.

We should just follow the white-book:
https://github.com/ApsaraDB/PolarDB-for-PostgreSQL/blob/distributed/doc/polardb/benchmark.md

Fixes: https://tracker.ceph.com/issues/62700
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/suites/fs/workload/tasks/5-workunit/postgres.yaml

index 12a84a9ba7c98c47250a17794dd556356cea44bf..7e71dbc884da73f2ce0598e15abefe94beaeeb9a 100644 (file)
@@ -30,7 +30,7 @@ tasks:
       - sudo -u postgres -- postgresql-setup --initdb
       - sudo ls -lZaR /tmp/cephfs/postgres/
       - sudo systemctl start postgresql
-      - sudo -u postgres -- pgbench -s 500 -i
+      - sudo -u postgres -- pgbench -s 32 -i
       - sudo -u postgres -- pgbench -c 100 -j 4 --progress=5 --time=900
       - sudo systemctl stop postgresql
       - sudo ls -lZaR /tmp/cephfs/postgres/