MySQL Cluster2个数据节点压力测试--mysqlslap工具压400W写
锅巴哥的个人建议:cluster叫电信运营商版本,所以基本上在很大的用户并发量的情况下才会用到,对连接数的线性增长要求高的场景,千兆就不用想了, 没万兆就不用玩了。
很不幸,我的就是千兆网络,我的数据节点是16 core,32G内存,sql节点是16core,16G内存,做了raid10
PS: 水平所限,环境所限,测试结果仅供参考,欢迎大家一起交流提出宝贵的意见,让我更进一步。
1【】一:测试
10.80.40.107 3307
mysql -utim -pxxxxxxxx -P3307 -h10.80.40.107 --default-character-set=utf8
-- select 查询测试 100W 数据压力测试
1.1 ndbcluster
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-guid-primary --concurrency=500,1000,1500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=rdb10 --auto-generate-sql-load-type=read ) 1> r101.log 2> r102.log
-- 20.40.30.31
(time mysqlslap --engine=ndbcluster --auto-generate-sql-guid-primary --concurrency=800,1200,1500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=rdb10 --auto-generate-sql-load-type=read ) 1> /root/r101.log 2> /root/r102.log
1.2 innodb
-- 20.40.30.37
(time mysqlslap --engine=innodb -h20.40.30.37 -P3307 -utim -pxxxxxxxx --auto-generate-sql-guid-primary --concurrency=800,1200,1500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=idb10 --auto-generate-sql-load-type=read ) 1> /root/rin101.log 2> /root/rin102.log
2 mixed 读写混合压力测试
ndbcluster 10W
2.1【===================10W 写 =================】
-- ndbcluster 在集群里面测试
2.1.1 ndbcluster 10W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=100000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb10 –-commint=100 --auto-generate-sql-load-type=write)
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=100000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb10 –-commint=100 --auto-generate-sql-load-type=write)
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=100000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb10 –-commint=100 --auto-generate-sql-load-type=write)
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 4.885 seconds
Minimum number of seconds to run all queries: 4.729 seconds
Maximum number of seconds to run all queries: 5.041 seconds
Number of clients running queries: 500
Average number of queries per client: 200
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 5.948 seconds
Minimum number of seconds to run all queries: 5.399 seconds
Maximum number of seconds to run all queries: 6.497 seconds
Number of clients running queries: 1000
Average number of queries per client: 100
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 6.866 seconds
Minimum number of seconds to run all queries: 6.116 seconds
Maximum number of seconds to run all queries: 7.617 seconds
Number of clients running queries: 1500
Average number of queries per client: 66
2.1.2 innodb 在20.40.30.52里面测试
-- innodb 10W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500,1000,1500 --number-of-queries=100000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indbw2 –-commint=100 --auto-generate-sql-load-type=write) 1> idb11w.log 2> indb12w.log
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 14.494 seconds
Minimum number of seconds to run all queries: 13.995 seconds
Maximum number of seconds to run all queries: 14.994 seconds
Number of clients running queries: 500
Average number of queries per client: 200
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 15.575 seconds
Minimum number of seconds to run all queries: 15.427 seconds
Maximum number of seconds to run all queries: 15.724 seconds
Number of clients running queries: 1000
Average number of queries per client: 100
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 14.275 seconds
Minimum number of seconds to run all queries: 13.989 seconds
Maximum number of seconds to run all queries: 14.561 seconds
Number of clients running queries: 1500
Average number of queries per client: 66
2.2【===================50W 写 =================】
2.2.1-- ndbcluster 50W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=500000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb50 –-commint=100 --auto-generate-sql-load-type=write) 1> 51-500.log 2> 52-500.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=500000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb50 –-commint=100 --auto-generate-sql-load-type=write) 1> 51-1000.log 2> 52-1000.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=500000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb50 –-commint=100 --auto-generate-sql-load-type=write) 1> 51-1500.log 2> 52-1500.log
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 16.497 seconds
Minimum number of seconds to run all queries: 15.425 seconds
Maximum number of seconds to run all queries: 17.569 seconds
Number of clients running queries: 500
Average number of queries per client: 1000
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 16.355 seconds
Minimum number of seconds to run all queries: 16.114 seconds
Maximum number of seconds to run all queries: 16.596 seconds
Number of clients running queries: 1000
Average number of queries per client: 500
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 21.475 seconds
Minimum number of seconds to run all queries: 20.897 seconds
Maximum number of seconds to run all queries: 22.053 seconds
Number of clients running queries: 1500
Average number of queries per client: 333
2.2.2 innodb 50W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=500000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indb52 –-commint=100 --auto-generate-sql-load-type=write) 1> idb51-500.log 2> idb52-500.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=500000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indb52 –-commint=100 --auto-generate-sql-load-type=write) 1> idb51-1000.log 2> idb52-1000.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=500000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indb52 –-commint=100 --auto-generate-sql-load-type=write) 1> idb51-1500.log 2> idb52-1500.log
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 72.366 seconds
Minimum number of seconds to run all queries: 72.271 seconds
Maximum number of seconds to run all queries: 72.461 seconds
Number of clients running queries: 500
Average number of queries per client: 1000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 75.593 seconds
Minimum number of seconds to run all queries: 75.500 seconds
Maximum number of seconds to run all queries: 75.687 seconds
Number of clients running queries: 1000
Average number of queries per client: 500
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 70.388 seconds
Minimum number of seconds to run all queries: 69.999 seconds
Maximum number of seconds to run all queries: 70.777 seconds
Number of clients running queries: 1500
Average number of queries per client: 333
2.3 【===================100W 写 =================】
2.3.1 ndbcluster 100W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb100 –-commint=100 --auto-generate-sql-load-type=write) 1> 101-500.log 2> 102-500.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb100 –-commint=100 --auto-generate-sql-load-type=write) 1> 101-1000.log 2> 102-1000.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb100 –-commint=100 --auto-generate-sql-load-type=write) 1> 101-1500.log 2> 102-1500.log
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 32.005 seconds
Minimum number of seconds to run all queries: 30.456 seconds
Maximum number of seconds to run all queries: 33.555 seconds
Number of clients running queries: 500
Average number of queries per client: 2000
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 31.511 seconds
Minimum number of seconds to run all queries: 30.859 seconds
Maximum number of seconds to run all queries: 32.163 seconds
Number of clients running queries: 1000
Average number of queries per client: 1000
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 43.912 seconds
Minimum number of seconds to run all queries: 42.361 seconds
Maximum number of seconds to run all queries: 45.463 seconds
Number of clients running queries: 1500
Average number of queries per client: 666
2.3.2 innodb 100W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indb100 –-commint=100 --auto-generate-sql-load-type=write) 1> idb101-500.log 2> idb102-500.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indb100 –-commint=100 --auto-generate-sql-load-type=write) 1> idb101-1000.log 2> idb102-1000.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=indb100 –-commint=100 --auto-generate-sql-load-type=write) 1> idb101-1500.log 2> idb102-1500.log
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 144.806 seconds
Minimum number of seconds to run all queries: 144.262 seconds
Maximum number of seconds to run all queries: 145.350 seconds
Number of clients running queries: 500
Average number of queries per client: 2000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 152.853 seconds
Minimum number of seconds to run all queries: 152.369 seconds
Maximum number of seconds to run all queries: 153.337 seconds
Number of clients running queries: 1000
Average number of queries per client: 1000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 146.931 seconds
Minimum number of seconds to run all queries: 140.731 seconds
Maximum number of seconds to run all queries: 153.132 seconds
Number of clients running queries: 1500
Average number of queries per client: 666
2.4 【===================100W 更新 =================】
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=600,800,1000 --number-of-queries=1000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=udb100 –-commint=100 --auto-generate-sql-load-type=update) 1> u101.log 2> u102.log
2.5【===================200W 写 =================】
2.5.1 ndbcluster 200W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=2000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb200 –-commint=100 --auto-generate-sql-load-type=write) 1> 201-500.log 2> 202-500.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=2000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb200 –-commint=100 --auto-generate-sql-load-type=write) 1> 201-1000.log 2> 202-1000.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=2000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb200 –-commint=100 --auto-generate-sql-load-type=write) 1> 201-1500.log 2> 202-1500.log
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 62.594 seconds
Minimum number of seconds to run all queries: 62.386 seconds
Maximum number of seconds to run all queries: 62.802 seconds
Number of clients running queries: 500
Average number of queries per client: 4000
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 64.860 seconds
Minimum number of seconds to run all queries: 64.797 seconds
Maximum number of seconds to run all queries: 64.924 seconds
Number of clients running queries: 1000
Average number of queries per client: 2000
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 77.396 seconds
Minimum number of seconds to run all queries: 75.384 seconds
Maximum number of seconds to run all queries: 79.409 seconds
Number of clients running queries: 1500
Average number of queries per client: 1333
2.5.2 innodb 200W测试,并发分别为--concurrency=500,1000,1500
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=2000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb200 –-commint=100 --auto-generate-sql-load-type=write) 1> 201-500.log 2> 202-500.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=2000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb200 –-commint=100 --auto-generate-sql-load-type=write) 1> 201-1000.log 2> 202-1000.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=2000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb200 –-commint=100 --auto-generate-sql-load-type=write) 1> 201-1500.log 2> 202-1500.log
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 289.412 seconds
Minimum number of seconds to run all queries: 287.566 seconds
Maximum number of seconds to run all queries: 291.258 seconds
Number of clients running queries: 500
Average number of queries per client: 4000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 305.715 seconds
Minimum number of seconds to run all queries: 305.452 seconds
Maximum number of seconds to run all queries: 305.978 seconds
Number of clients running queries: 1000
Average number of queries per client: 2000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 283.794 seconds
Minimum number of seconds to run all queries: 282.688 seconds
Maximum number of seconds to run all queries: 284.901 seconds
Number of clients running queries: 1500
Average number of queries per client: 1333
2.6 【===================400W 写 =================】
2.6.1 ndbcluster 并发数量分别为--concurrency=500,1000,1500
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-500.log 2> 402-500.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-1000.log 2> 402-1000.log
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-1500.log 2> 402-1500.log
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 125.639 seconds
Minimum number of seconds to run all queries: 124.601 seconds
Maximum number of seconds to run all queries: 126.677 seconds
Number of clients running queries: 500
Average number of queries per client: 8000
(time mysqlslap --engine=ndbcluster -h10.80.40.107 -P3307 -utim -pxxxxxxxx --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-500.log 2> 402-500.log
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 128.481 seconds
Minimum number of seconds to run all queries: 128.027 seconds
Maximum number of seconds to run all queries: 128.935 seconds
Number of clients running queries: 1000
Average number of queries per client: 4000
Benchmark
Running for engine ndbcluster
Average number of seconds to run all queries: 163.654 seconds
Minimum number of seconds to run all queries: 160.584 seconds
Maximum number of seconds to run all queries: 166.724 seconds
Number of clients running queries: 1500
Average number of queries per client: 2666
2.6.2 innodb 并发数量分别为--concurrency=500,1000,1500
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=500 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-500.log 2> 402-500.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1000 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-1000.log 2> 402-1000.log
(time mysqlslap --engine=innodb -h127.0.0.1 -P3307 -uadmin -pMxxxxxd --auto-generate-sql-write-number=1000 --auto-generate-sql-guid-primary --concurrency=1500 --number-of-queries=4000000 --iterations=2 --number-char-cols=10 --number-int-cols=10 --auto-generate-sql --create-schema=ndb400 –-commint=100 --auto-generate-sql-load-type=write) 1> 401-1500.log 2> 402-1500.log
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 590.100 seconds
Minimum number of seconds to run all queries: 586.919 seconds
Maximum number of seconds to run all queries: 593.281 seconds
Number of clients running queries: 500
Average number of queries per client: 8000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 675.111 seconds
Minimum number of seconds to run all queries: 649.595 seconds
Maximum number of seconds to run all queries: 700.628 seconds
Number of clients running queries: 1000
Average number of queries per client: 4000
time mysql --default-character-set=utf8 -utim -pxxxxxxxx -h20.40.30.35 -P3307 -o bgcarddb < /home/bgcarddb.sql 2 > c1.log
3 PS 启动31的sql节点。
cp /usr/local/mysqla/bin/mysqld /usr/local/mysql/bin/mysqld
sudo /usr/local/mysqla/bin/mysqld_safe --basedir=/usr/local/mysqla/ --datadir=/data/bgdata --user=mysql &
MySQL Cluster2个数据节点压力测试--mysqlslap工具压400W写的更多相关文章
- MySQL Cluster 4个数据节点压力测试--mysqlslap工具压400W写
锅巴哥的个人建议:cluster叫电信运营商版本,所以基本上在很大的用户并发量的情况下才会用到,对连接数的线性增长要求高的场景,千兆就不用想了, 没万兆就不用玩了. 很不幸,我的就是千兆网络,我的数据 ...
- MySQL自带的性能压力测试工具mysqlslap
mysqlslap是从MySQL的5.1.4版开始就开始官方提供的压力测试工具. 通过模拟多个并发客户端并发访问MySQL来执行压力测试,同时提供了较详细的SQL执行数据性能报告,并且能很好的对比多个 ...
- (转)MySQL自带的性能压力测试工具mysqlslap详解
mysqlslap 是 Mysql 自带的压力测试工具,可以模拟出大量客户端同时操作数据库的情况,通过结果信息来了解数据库的性能状况 mysqlslap 的一个主要工作场景就是对数据库服务器做基准测试 ...
- 数据库相关文章转载(2) MySQL自带的性能压力测试工具mysqlslap详解
PS:今天一同事问我有木有比较靠谱的mysql压力测试工具可用.其实mysql自带就有一个叫mysqlslap的压力测试工具,还是模拟的不错的.下面举例说说.mysqlslap是从5.1.4版开始的一 ...
- (总结)MySQL自带的性能压力测试工具mysqlslap详解
PS:今天一同事问我有木有比较靠谱的mysql压力测试工具可用.其实mysql自带就有一个叫mysqlslap的压力测试工具,还是模拟的不错的.下面举例说说.mysqlslap是从5.1.4版开始的一 ...
- MySQL自带的性能压力测试工具mysqlslap详解
使用语法如下:# mysqlslap [options] 常用参数 [options] 详细说明: --auto-generate-sql, -a 自动生成测试表和数据,表示用mysqlslap工具自 ...
- mysqlslap详解--MySQL自带的性能压力测试工具(转)
本文的参考博客地址为:https://blog.csdn.net/fuzhongfaya/article/details/80943991 和 https://www.cnblogs.com/davy ...
- MySQL常用配置和性能压力测试:MySQL系列之十五
一.MySQL常用配置 以下所有配置参数以32G内存的服务器为基 1.打开独立的表空间 innodb_file_per_table = 1 2.MySQL服务所允许的同时会话数的上限,默认为151,经 ...
- Webbench、ab命令:做压力测试的工具和性能的监控工具
DDOS攻击:???DDOS概述:分布式拒绝服务(DDoS:Distributed Denial of Service)攻击,指借助于客户/服务器技术,将多个计算机联合起来作为攻击平台,对一个或多个目 ...
随机推荐
- MyGeneration 数据库驱动为空
重做系统后安装了MyGeneration 但是安装完成后发现驱动中没有驱动信息,查了下网上的解决方案发下下面的可以完美解决,特作备忘: The problem is because of multi ...
- Launcher2编译
Android的源码包,压缩文件大概有3个G左右,要使用其中自带的一些源码需要很多技巧,否则会提示找不到一些库,大量的报错让人心神不定,不知所从. 我拿桌面代码举个例子吧. 桌面代码在源码包的pack ...
- 细雨学习笔记:Jmeter测试计划最基本的元素
测试计划-用户组下最基本的元素: 1)HTTP请求默认值 2)HTTP Cookie 管理器(有些操作需要登录后才能访问,用户信息记录在Cookie中,各请求之间就可以共享Cookie了) 3)请求S ...
- 感知器Perceptron
Perceptron: 1.一种基于监督的线性分类器,其特点是:1)模型简单,具有很少的学习参数:2)具有可视性,一条直线即可划分:3)基于人工神经网络的原理. 其结构图为: 2.学习的关键技术: ...
- 转储oracle的redo文件
1.确定当前使用的redo文件 SQL> select member from v$logfile where group# = ( select group# from v$log where ...
- ASP.NET MVC中使用ASP.NET AJAX异步访问WebService
使用过ASP.NET AJAX的朋友都知道,怎么通过ASP.NET AJAX在客户端访问WebService,其实在ASP.NET MVC中使用ASP.NET AJAX异步访问WebService 也 ...
- bzoj 3171 [Tjoi2013]循环格(MCMF)
[题目链接] http://www.lydsy.com/JudgeOnline/problem.php?id=3171 [题意] 给定一个方向矩阵,要求改变最少的格子,使得任意一个点都在一个环中. [ ...
- PhoneGap,Cordova[3.5.0-0.2.6]:利用插件Cordova-SQLitePlugin来操作SQLite数据库
在PhoneGap应用程序中,我们可以利用一款名叫Cordova-SQLitePlugin的插件来方便的操作基于浏览器内置数据库或独立的SQLite数据库文件,此插件的基本信息: 1.项目地址:htt ...
- 在eclipse中配置spark 0.9.1源码的开发环境
一.准备工作: 1.下载release版spark 0.9.1,本次用的版本是spark-0.9.1-bin-cdh4. 2.下载scala IDE 3.0.2,这个版本ide的支持scala 2.1 ...
- Spark系列(八)Worker工作原理
工作原理图 源代码分析 包名:org.apache.spark.deploy.worker 启动driver入口点:registerWithMaster方法中的case LaunchDriver ...