鑑於騰訊Tspider未開源,我拿到了原做者Kentoku Shiba的Spider3.3源代碼(集成了騰訊的補丁,性能有所增強),而且編譯到MariaDB 10.1.22 GA版本里,二進制下載地址
http://www.liyanlan.com/download/mariadb/spider/mariadb-10.1.22-spider-3.3.11-linux-x86_64.tgzmysql
注:新版本的參數爲110個,比以前的3.2.37RC公測版多了9個參數。linux
調優參數:sql
spider_multi_split_read = 1
spider_low_mem_read = 0
spider_conn_recycle_mode = 1
spider_bgs_mode = 1
spider_bka_mode = 2
spider_quick_mode = 3
spider_casual_read = 1
optimizer_switch = ‘engine_condition_pushdown=on,mrr=on,mrr_sort_keys=on’
spider_block_size = 4294967295
spider_remote_trx_isolation = 1
spider_remote_autocommit = 1
spider_remote_default_database = ON
spider_use_pushdown_udf = 1
spider_semi_trx = 1
spider_semi_trx_isolation = 1後端
sysbench --test=/root/sysbench-0.5/sysbench/tests/db/oltp.lua --report-interval=1 --oltp-read-only=on --oltp_tables_count=1 --oltp-table-size=1000000 --max-requests=0 --max-time=10 --num-threads=64 --mysql-host=192.168.143.206 --mysql-port=3303 --mysql-user=admin --mysql-password=123456 --mysql-db=test --mysql-engine-trx=yes run
ide
感謝網友羅峯提供空間下載。性能