[Tarantool-patches] [PATCH] durability: direct tpcc_load usage, removed sed
Oleg Koshovetc
okoshovetc at tarantool.org
Wed Nov 25 17:59:57 MSK 2020
https://github.com/tarantool/bench-run/compare/tpcc_durability
load.sh script that was used before has been wirtten in such a manner
that it was hard to detect any errors during it's execution (not to
mention the fact that tpcc_load does not exit on any error).
Unfortunately this patch depends on a newer version of tarantool/tpcc
that exits on repetable errors, uses correct schemas for the latest
tarantool version and uses correct API from the latest tarantool
versions.
---
benchs/tpcc/run.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/benchs/tpcc/run.sh b/benchs/tpcc/run.sh
index fca7939..c27e4dc 100755
--- a/benchs/tpcc/run.sh
+++ b/benchs/tpcc/run.sh
@@ -13,7 +13,6 @@ killall tarantool tpcc_load 2>/dev/null || true
sync && echo "sync passed" || echo "sync failed with error" $?
echo 3 > /proc/sys/vm/drop_caches
-sed 's#box.sql#box#g' -i /opt/tpcc/create_table.lua
$numaopts tarantool /opt/tpcc/create_table.lua &
sleep 5
@@ -23,7 +22,7 @@ sleep 5
tpcc_opts="-h localhost -P 3301 -d tarantool -u root -p '' -w 15"
cd /opt/tpcc
-. /opt/tpcc/load.sh tarantool 15
+/opt/tpcc/tpcc_load $tpcc_opts
$numaopts /opt/tpcc/tpcc_start $tpcc_opts -r10 -l${TIME} -i${TIME}
>tpcc_output.txt 2>/dev/null
--
2.7.4
More information about the Tarantool-patches
mailing list