sysbench¸¦ ÀÌ¿ëÇÑ Mysql ºÎÇÏ Å×½ºÆ®
https://www.ehostidc.co.kr/cscenter/notice.php (480)https://www.ehostidc.co.kr/cscenter/consulting.php (439)
1) sysbench 설치 |
[root@master ~]# yum install sysbench160; |
2) ǥ12;Ȣ16; 테스트용 데1060;터베1060;스 0143; 유1200; 생성 |
mysql> create database sysbench; mysql> create user 'sysbench'@'localhost' identified by 'sysbench'; mysql> create user 'sysbench'@'127.0.0.1' identified by 'sysbench'; mysql> grant all on sysbench.* to 'sysbench'@'localhost'; mysql> grant all on sysbench.* to 'sysbench'@'127.0.0.1'; mysql> flush privileges; |
3) 테스트용 DB에 테1060;블 / 데1060;터 생성 |
[root@master ~]# sysbench --mysql-host=[호스트명]160;--mysql-port=[mysql port]160;--mysql-user=[DB User]160;--mysql-password=[DB Pass]160;--mysql-db=[DB명]160;--table-size=[각 Table별 데1060;터 ,148; 수]160;--tables=[table160;갯수]160; /usr/share/sysbench/oltp_read_write.lua prepare |
4) read / write 테스트 실행 |
[root@master ~]# sysbench --mysql-host=[호스트명] --mysql-port=[mysql port] --mysql-user=[DB User] --mysql-password=[DB Pass] --mysql-db=[DB명] --threads=[테스트 thread 수] --report-interval=[/196;그 출/141;시간] --table-size=[각 Table별 데1060;터 수] --tables=[table 갯수] 160;/usr/share/sysbench/oltp_read_write.lua run |
5) 결과 확1064; |
6) 테스트 데1060;터 삭1228; |
[root@master ~]# sysbench --mysql-host=[호스트명] --mysql-port=[mysql port] --mysql-user=[DB User] --mysql-password=[DB Pass] --mysql-db=[DB명] --table-size=[각 Table별 데1060;터 ,148; 수] --tables=[table 갯수] 160;/usr/share/sysbench/oltp_read_write.lua cleanup |
160;