20 Commits

Author SHA1 Message Date
a245b2f531 OLTP scripts: add --reconnect option.
oltp_*.lua scripts now support the --reconnect=N option. When specified,
sysbench will reconnect after every N events.

Fixes GH-90.
2018-12-11 23:22:56 +03:00
dbcba59927 Merge branch '1.0' 2017-11-09 14:50:15 +03:00
06c7f55f24 Fix #178: (--tables>1 --threads>1 broken in oltp_insert.lua)
A combination of --tables and --threads with non-default (i.e. higher
than 1) values resulted in incompleted set of tables generated by
"prepare" for the oltp_insert.lua script.
2017-11-09 12:35:17 +03:00
ce7770c626 Merge branch '1.0' 2017-03-12 10:46:59 +03:00
89ab44d50e Fix #119 (oltp_insert.lua + --auto-inc=0 fails)
Fix oltp_insert.lua when run with --auto-inc disabled. Add regression tests.
2017-03-12 10:45:03 +03:00
800f2e90e6 Rename the 'prewarm' command to 'warmup'. Keep the old name as an alias. 2017-02-14 14:09:52 +03:00
21d87e792e Run OLTP RW regression tests with a single thread for more deterministic results. 2017-02-05 11:22:47 +01:00
7f56e219f7 Rename --num-threads to --threads.
Accept the old name with a warning for compatibility.
2017-02-01 17:42:39 +03:00
788fcbb30b Rename --max-requests to --events, --max-time to --time.
Print warnings if old names are used, but accept them for compatibility.
2017-02-01 17:20:22 +03:00
12e56538f3 Parallel 'prepare' and 'prewarm' (MySQL-only) commands for OLTP benchmarks. 2017-01-28 17:55:29 +03:00
a3b4c0610e Add option declarations to OLTP tests.
All bundled OLTP tests now declare their supported options. Which means:

- unknown options are not be silently accepted, but throw an
  error (fixes #15)
- 'sysbench /any OLTP script/ help' now prints a list of supported
  options, their descriptions, types and default values just as built-in
  tests do (fixes #79)
2017-01-26 14:35:01 +03:00
45e219d038 Change the command line syntax: remove the --test option. 2017-01-25 00:02:59 +03:00
a6cebd3a57 Rewrite OLTP benchmarks with the new SQL API + cleanups. 2017-01-17 00:17:17 +03:00
378c49b275 Fix legacy OLTP regression tests. 2017-01-15 16:53:00 +03:00
84fed669cc Move oltp_point_select.lua from sysbench/tests/db/ to sysbench/lua/.
Move oltp_point_select.lua to the sysbench/lua/ directory. Add basic
regression tests.
2017-01-15 16:45:38 +03:00
1d434809ec SQL API refactoring, cut #1. 2017-01-14 01:29:57 +03:00
aade88ed5e Merge branch '1.0' into concurrency_kit 2016-12-05 12:22:21 +03:00
0a6bc8a9ed Add tests for --oltp-create-secondary. 2016-10-22 21:30:24 +03:00
bf2924b0fc Use an atomic fetch-and-add instead of a global mutex in sb_lua_get_request().
This was a scalability bottleneck with --max-requests>0.
2016-10-16 23:09:51 +03:00
95885f6a9f Basic tests for oltp.lua against MySQL and PostgreSQL. 2016-09-16 23:48:12 +03:00