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 &

上一篇:Kafka技术内幕 读书笔记之(三) 生产者——消费者:高级API和低级API——基础知识


下一篇:gogs详细配置