Commit Graph

74 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
0aba8f60da Fix GH-250: mysql_table_options is not supported in oltp tests
OLTP scripts now support --create-table-options, which can be used to
pass extra SQL to CREATE TABLE statements executed on 'prepare'.

Ref. GH-252.
2018-07-17 00:05:48 +03:00
50966c85ce Merge branch '1.0' 2018-06-26 21:35:39 +03:00
aa52c53001 Update copyright year in sysbench.cmdline.lua. 2018-05-11 22:24:41 +03:00
d805300846 Fix GH-223: test failure on ppc64
Make sysbench.cmdline.print_test_options() output deterministic by
sorting option names when parsing.
2018-05-11 22:22:33 +03:00
8ded1d9f10 Remove unsupported Oracle, Drizzle and AttachSQL drivers from the source tree. 2018-04-21 08:08:48 +03:00
133aa442e1 Merge branch '1.0' 2018-04-01 14:39:10 +03:00
56b473faf6 Fix GH-195: Fix JSON reporter to produce valid JSON
sysbench.report_json() now generates well-formed JSON without comma
after the last array element and with proper opening/closing brackets.
2018-04-01 13:59:00 +03:00
2e05f16bf1 Merge branch '1.0' 2018-03-28 13:09:41 +03:00
a4cb8a6c6d Fix a help message typo. 2018-03-28 13:09:24 +03:00
7b451463c1 Fix a comment typo. 2018-03-28 13:03:07 +03:00
97f1c8cfbf Merge branch '1.0' 2018-03-23 19:14:54 +03:00
7b383cc537 Don't fail when query_row() is called with an empty SELECT. 2018-03-23 19:13:52 +03:00
1036b64d32 Merge branch '1.0' 2018-03-21 22:43:44 +03:00
89e37ba6f7 Don't crash when SQL bulk insert API calls are used out of order. 2018-03-21 22:43:08 +03:00
9f40c0006b Merge branch '1.0' 2018-02-17 18:26:06 +03:00
976208719b OLTP tests: re-prepare statements after reconnects (fixes #213).
Fix oltp_common.lua to re-prepare prepared statements after
reconnecting, i.e. if a connection to the server has been lost and one
of the following MySQL errors is in the --mysql-ignore-errors list:

- 2013 (CR_SERVER_LOST)
- 2055 (CR_SERVER_LOST_EXTENDED)
- 2006 (CR_SERVER_GONE_ERROR)
- 2011 (CR_TCP_CONNECTION)
2018-02-17 17:55:43 +03:00
edb40e012a Remove legacy (0.5) API. 2018-01-07 14:08:27 +03:00
9b7baa550c Merge branch '1.0' 2018-01-06 12:33:15 +03:00
b7ab36dd3d Update copyrights. 2018-01-06 12:32:12 +03:00
7ee5776eff Remove build dependency on xxd/vim-common. 2018-01-06 11:11:53 +03:00
09db2db521 Update copyright in sysbench.lua. 2018-01-02 21:48:55 +05:00
986000108a Merge branch '1.0' 2018-01-02 20:11:05 +05:00
b7dd7e0781 fix the ret value by which we can stop benchmark in event 2018-01-02 20:08:36 +05:00
b877b5f986 Adds support for variable-length rand string
Adds a new random generator of variable-length strings:

```lua
s = sysbench.rand.varstring(10, 100)
```

"s" will be a string containing ASCII characters from '0' to 'z',
inclusive. It will be a length between 10 and 100 characters long.

Addresses GH Issue #17
2017-11-23 10:01:50 -05: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
6c2e47ecd6 Add Zipfian distribution.
Zipfian distribution is now available and can be controlled via
--rand-type=zipfian, --rand-zipfian-exp.
2017-09-12 10:18:14 +03:00
b16976cf2e Merge branch '1.0' 2017-09-12 10:13:40 +03:00
cd2b738022 Avoid PK conflicts in oltp_insert.lua by creating empty tables on 'prepare'. 2017-09-12 10:08:59 +03:00
bcebbb39ff Merge branch '1.0' 2017-08-23 16:20:14 +03:00
305be15ebc Fix #168: oltp_delete.lua uses DELETE + INSERT statements
Remove INSERT statements from oltp_delete.lua.
2017-08-23 16:14:14 +03:00
e9b5f4b71e Fix #167: warmup maybe problem
Fix the --warmup-time option for the fileio test by replacing internal
counters in sb_fileio.c with sb_counters_t / sb_stat_t API used in other
benchmarks. As a result, checkpoints (and --warmup-time) now reset
fileio counters properly.
2017-08-21 18:53:01 +03:00
36e733922d Merge upstream changes 2017-06-28 18:33:36 +02:00
009551f4e3 Use same defaults as built-in options 2017-06-28 18:28:06 +02:00
6f3a4690ff Emit cumulative json reports 2017-06-28 18:26:44 +02:00
1e0c5b8cd1 Minor fix for prime-test.lua. 2017-06-28 19:20:35 +03:00
7312515be0 Add two examples of custom lua cpu tests 2017-06-28 17:20:07 +02:00
46f790b773 Merge branch '1.0' 2017-06-04 20:04:09 +03:00
6356e2b45e Fix #139: Json format has trailing comma
Remove a superfluous comma from the JSON reporter.
2017-06-04 20:03: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
2343e4bbe2 Merge branch '1.0' 2017-02-28 12:30:28 +03:00
9bd33c7e41 Fix grammar in help text for --skip-trx. 2017-02-28 12:30:10 +03:00
59d32c65c3 Merge branch '1.0' 2017-02-25 20:29:36 +03:00
1d40ad0e1c Optimize random string generation in OLTP_RW.
Avoid Lua string management in OLTP_RW by introducing a new sql_param
method: set_rand_str(). Which calls sb_rand_str() in C code with a given
template string and a pre-allocated result buffer. In oltp_common.lua,
use set_rand_str() instead of allocating a new Lua string each time we
need a random string parameter for a prepared statement.
2017-02-25 19:57:55 +03:00
eeb7fa19c4 Fix a syntax error in oltp_common.lua. 2017-02-14 14:23:37 +03:00
800f2e90e6 Rename the 'prewarm' command to 'warmup'. Keep the old name as an alias. 2017-02-14 14:09:52 +03:00
57b6f9d2b6 Correct a diagnostic message on index creation. 2017-02-08 22:46:28 +03:00
9c87d39700 Grammar fixes in a comment. 2017-02-08 21:45:51 +03:00