mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
script/run-cbt.sh: add support for ceph-osd testing.
The patch brings `--classical` switch to the `run-cbt.sh` script. Its purpose is to automate the apple-to-apple comparison between OSD implementations. In both cases memstore is selected and the same benchmarks are used. Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
parent
02ce12c2c4
commit
a1954fe397
@ -25,7 +25,8 @@ archive_dir=$PWD/cbt-archive
|
||||
build_dir=$PWD
|
||||
source_dir=$(dirname $PWD)
|
||||
use_existing=false
|
||||
opts=$(getopt --options "a:h" --longoptions "archive-dir:,build-dir:,source-dir:,cbt:,help,use-existing" --name $prog_name -- "$@")
|
||||
classical=false
|
||||
opts=$(getopt --options "a:h" --longoptions "archive-dir:,build-dir:,source-dir:,cbt:,help,use-existing,classical" --name $prog_name -- "$@")
|
||||
eval set -- "$opts"
|
||||
|
||||
while true; do
|
||||
@ -50,6 +51,10 @@ while true; do
|
||||
use_existing=true
|
||||
shift
|
||||
;;
|
||||
--classical)
|
||||
classical=true
|
||||
shift
|
||||
;;
|
||||
-h|--help)
|
||||
usage $prog_name
|
||||
return 0
|
||||
@ -82,11 +87,17 @@ fi
|
||||
source_dir=$(readlink -f $source_dir)
|
||||
if ! $use_existing; then
|
||||
cd $build_dir
|
||||
if $classical; then
|
||||
MDS=0 MGR=1 OSD=3 MON=1 $source_dir/src/vstart.sh -n -X \
|
||||
--without-dashboard --memstore \
|
||||
-o "memstore_device_bytes=34359738368"
|
||||
else
|
||||
MDS=0 MGR=1 OSD=3 MON=1 $source_dir/src/vstart.sh -n -X \
|
||||
--without-dashboard --memstore \
|
||||
-o "memstore_device_bytes=34359738368" \
|
||||
--crimson --nodaemon --redirect-output \
|
||||
--osd-args "--memory 4G"
|
||||
fi
|
||||
cd -
|
||||
fi
|
||||
|
||||
@ -106,5 +117,9 @@ done
|
||||
|
||||
if ! $use_existing; then
|
||||
cd $build_dir
|
||||
if $classical; then
|
||||
$source_dir/src/stop.sh
|
||||
else
|
||||
$source_dir/src/stop.sh --crimson
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user