|
| 1 | +# DISCLAIMER OF WARRANTIES AND LIMITATION OF LIABILITY |
| 2 | +# The software is supplied "as is" and all use is at your own risk. Peak Performance Systems disclaims |
| 3 | +# all warranties of any kind, either express or implied, as to the software, including, but not limited to, |
| 4 | +# implied warranties of fitness for a particular purpose, merchantability or non - infringement of proprietary |
| 5 | +# rights. Neither this agreement nor any documentation furnished under it is intended to express or imply |
| 6 | +# any warranty that the operation of the software will be uninterrupted, timely, or error - free. Under no |
| 7 | +# circumstances shall Peak Performance Systems be liable to any user for direct, indirect, incidental, |
| 8 | +# consequential, special, or exemplary damages, arising from or relating to this agreement, the software, or |
| 9 | +# user#s use or misuse of the softwares. Such limitation of liability shall apply whether the damages arise |
| 10 | +# from the use or misuse of the software (including such damages incurred by third parties), or errors of |
| 11 | +# the software. |
| 12 | + |
| 13 | +INTRO |
| 14 | +----- |
| 15 | +Mysql SLOB is ported from SLOB(Silly Little Oracle Benchmark) tools, published by Kevin Closson. See below page for the introduction of SLOB. |
| 16 | +http://kevinclosson.net/2012/02/06/introducing-slob-the-silly-little-oracle-benchmark/ |
| 17 | +Mysql SLOB is rewriten for mysql benchmark. |
| 18 | + |
| 19 | +USAGE |
| 20 | +----- |
| 21 | +1. Setup n schema for benchmark |
| 22 | +sh ./setup.sh <number of users> |
| 23 | + |
| 24 | +2. Start n session to run the workload |
| 25 | +sh ./runit.sh <number of sessions to execute> |
| 26 | + |
| 27 | +Configuration |
| 28 | +------------- |
| 29 | +The Parameters in slob.conf are self-explained as below |
| 30 | + |
| 31 | +UPDATE_PCT=25 -- The ratio of updates |
| 32 | +RUN_TIME=300 -- The Run Time |
| 33 | +WORK_LOOP=0 -- The max loop iteration |
| 34 | +SCALE=10000 -- The number of rows to be populate when setup the schemas |
| 35 | +WORK_UNIT=64 -- The number of rows to be selected or updated |
| 36 | +REDO_STRESS=HEAVY -- Update few or many columns |
| 37 | +LOAD_PARALLEL_DEGREE=4 -- The number of parallel process to setup the schemas |
| 38 | + |
| 39 | +# Password of Mysql Root Account |
| 40 | +MYSQL_ROOT_PWD=password -- *Mandatory*: the root password |
| 41 | + |
| 42 | +#### Mysql Connection Settings: |
| 43 | +MYSQL_HOST= -- The remote Mysql host name |
| 44 | +MYSQL_PORT= -- The none-default Mysql port number |
| 45 | + |
| 46 | +# The datafile path for the benchmark tables, supported since MySQL 5.6.6 |
| 47 | +INNODB_DATA_PATH="" -- The none-default innodb datafile path |
| 48 | + |
| 49 | +#### Advanced settings: |
| 50 | +SHARED_DATA_MODULUS=0 -- If each session do selects/updates on the same schema user1 every n loop iteration |
| 51 | +DO_UPDATE_HOTSPOT=FALSE -- If each session do updates on the same schema user1 every n loop iteration |
| 52 | +HOTSPOT_PCT=10 -- Hotspot data percent |
| 53 | + |
| 54 | +THINK_TM_MODULUS=0 -- Go to sleep every n loop iteration |
| 55 | +THINK_TM_MIN=.1 -- Min sleep time |
| 56 | +THINK_TM_MAX=.5 -- Max sleep time |
0 commit comments