ãããã®VPS3å°ã§MySQLæ¥ç¶ã®ãã³ããã¼ã¯
MySQL5.1ãå
¬å¼RPMã§ã¤ã³ã¹ãã¼ã«ãã¦ãmy.cnfã¯my-large.cnfãã³ãã¼ãã¦skip-name-resolveãªãã·ã§ã³ã ã追å ãã¾ããã
SSLæ¥ç¶ã¯mysqlslapã§ä¸æããã¹ãã§ãã¾ããã§ããã(ããã¥ã¢ã«ã«ã¯55%é
ããªãã¨æ¸ããã¦ãã)
ä»®æ³ãµã¼ãAå ã§ã®ã½ã±ããæ¥ç¶
$ mysqlslap --no-defaults --auto-generate-sql --auto-generate-sql-guid-primary --engine=myisam --number-int-cols=3 --number-char-cols=5 --concurrency=3 --auto-generate-sql-write-number=100 --auto-generate-sql-execute-number=1000 --auto-generate-sql-load-type=mixed -u root Benchmark Running for engine myisam Average number of seconds to run all queries: 0.315 seconds Minimum number of seconds to run all queries: 0.315 seconds Maximum number of seconds to run all queries: 0.315 seconds Number of clients running queries: 3 Average number of queries per client: 1000
ä»®æ³ãµã¼ãAå ã§ã®TCP/IPæ¥ç¶
$ mysqlslap --no-defaults --auto-generate-sql --auto-generate-sql-guid-primary --engine=myisam --number-int-cols=3 --number-char-cols=5 --concurrency=3 --auto-generate-sql-write-number=100 --auto-generate-sql-execute-number=1000 --auto-generate-sql-load-type=mixed -u root -h 127.0.0.1 -P 3306 Benchmark Running for engine myisam Average number of seconds to run all queries: 0.352 seconds Minimum number of seconds to run all queries: 0.352 seconds Maximum number of seconds to run all queries: 0.352 seconds Number of clients running queries: 3 Average number of queries per client: 1000
åä¸ç©çãµã¼ãã®ä»®æ³ãµã¼ãBããä»®æ³ãµã¼ãAã«TCP/IPæ¥ç¶
$ mysqlslap --no-defaults --auto-generate-sql --auto-generate-sql-guid-primary --engine=myisam --number-int-cols=3 --number-char-cols=5 --concurrency=3 --auto-generate-sql-write-number=100 --auto-generate-sql-execute-number=1000 --auto-generate-sql-load-type=mixed -u root -h xxx.xxx.xxx.xxx -P 3306 Benchmark Running for engine myisam Average number of seconds to run all queries: 0.762 seconds Minimum number of seconds to run all queries: 0.762 seconds Maximum number of seconds to run all queries: 0.762 seconds Number of clients running queries: 3 Average number of queries per client: 1000
åä¸ç©çãµã¼ãã®ä»®æ³ãµã¼ãBããä»®æ³ãµã¼ãAã«SSHçµç±ã§æ¥ç¶
$ ssh -f -L 3320:localhost:3306 -N -4 hostA $ mysqlslap --no-defaults --auto-generate-sql --auto-generate-sql-guid-primary --engine=myisam --number-int-cols=3 --number-char-cols=5 --concurrency=3 --auto-generate-sql-write-number=100 --auto-generate-sql-execute-number=1000 --auto-generate-sql-load-type=mixed -u root -h 127.0.0.1 -P 3320 Benchmark Running for engine myisam Average number of seconds to run all queries: 4.100 seconds Minimum number of seconds to run all queries: 4.100 seconds Maximum number of seconds to run all queries: 4.100 seconds Number of clients running queries: 3 Average number of queries per client: 1000
å¥ç©çãµã¼ãã®ä»®æ³ãµã¼ãCããä»®æ³ãµã¼ãAã«TCP/IPæ¥ç¶
$ mysqlslap --no-defaults --auto-generate-sql --auto-generate-sql-guid-primary --engine=myisam --number-int-cols=3 --number-char-cols=5 --concurrency=3 --auto-generate-sql-write-number=100 --auto-generate-sql-execute-number=1000 --auto-generate-sql-load-type=mixed -u root -h xxx.xxx.xxx.xxx -P 3306 Benchmark Running for engine myisam Average number of seconds to run all queries: 7.124 seconds Minimum number of seconds to run all queries: 7.124 seconds Maximum number of seconds to run all queries: 7.124 seconds Number of clients running queries: 3 Average number of queries per client: 1000