日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql每秒57000_MySQL 性能:使用 MySQL 5.7 实现每秒 50 万查询

發布時間:2024/4/14 数据库 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql每秒57000_MySQL 性能:使用 MySQL 5.7 实现每秒 50 万查询 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

還有很多挑戰擺在我們面前;-)作為參考,我上述測試的硬件配置信息如下:

Server : 32cores-HT (bi-thread) Intel 2300Mhz, 128GB RAM

OS : Oracle Linux 6.2

FS : 啟用"noatime,nodiratime,nobarrier"掛載的EXT4

my.conf: max_connections=4000

key_buffer_size=200M

low_priority_updates=1

table_open_cache = 8000

back_log=1500

query_cache_type=0

table_open_cache_instances=16

# files

innodb_file_per_table

innodb_log_file_size=1024M

innodb_log_files_in_group = 3

innodb_open_files=4000

# buffers

innodb_buffer_pool_size=32000M

innodb_buffer_pool_instances=32

innodb_additional_mem_pool_size=20M

innodb_log_buffer_size=64M

join_buffer_size=32K

sort_buffer_size=32K

# innodb

innodb_checksums=0

innodb_doublewrite=0

innodb_support_xa=0

innodb_thread_concurrency=0

innodb_flush_log_at_trx_commit=2

innodb_max_dirty_pages_pct=50

innodb_use_native_aio=1

innodb_stats_persistent = 1

innodb_spin_wait_delay= 6 / 96

# perf special

innodb_adaptive_flushing = 1

innodb_flush_neighbors = 0

innodb_read_io_threads = 4

innodb_write_io_threads = 4

innodb_io_capacity = 4000

innodb_purge_threads=1

innodb_adaptive_hash_index=0

# monitoring

innodb_monitor_enable = '%'

performance_schema=OFF

如果你需要的話,Linux Sysbench的二進制版本在這里:

Sysbench-0.4.13-lux86

Sysbench-0.4.8-lux86

使用UNIX socket來運行Point-Selects測試的Sysbench命令如下(在parallel中啟動8個進程):LD_PRELOAD=/usr/lib64/libjemalloc.so /BMK/sysbench-0.4.8 --num-threads=$1 --test=oltp --oltp-table-size=10000000 --oltp-dist-type=uniform --oltp-table-name=sbtest_10M_$n --max-requests=0 --max-time=$2 --mysql-socket=/SSD_raid0/mysql.sock --mysql-user=dim --mysql-password=dim --mysql-db=sysbench --mysql-table-engine=INNODB --db-driver=mysql --oltp-point-selects=1 --oltp-simple-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --oltp-distinct-ranges=0 --oltp-skip-trx=on --oltp-read-only=on run > /tmp/test_$n.log &

使用IP端口來運行Point-Selects測試的Sysbench命令如下(在parallel中啟動8個進程):LD_PRELOAD=/usr/lib64/libjemalloc.so /BMK/sysbench-0.4.13 --num-threads=$1 --test=oltp --oltp-table-size=10000000 --oltp-dist-type=uniform --oltp-table-name=sbtest_10M_$n --max-requests=0 --max-time=$2 --mysql-host=127.0.0.1 --mysql-port=5700 --mysql-user=dim --mysql-password=dim --mysql-db=sysbench --mysql-table-engine=INNODB --db-driver=mysql --oltp-point-selects=1 --oltp-simple-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --oltp-distinct-ranges=0 --oltp-skip-trx=on --oltp-read-only=on run > /tmp/test_$n.log &

愿你有所收獲,

-Dimitri

總結

以上是生活随笔為你收集整理的mysql每秒57000_MySQL 性能:使用 MySQL 5.7 实现每秒 50 万查询的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。