Testing the ECS-hosted MySQL Performance
- Log in to the management console.
- Click in the upper left corner of the management console and select AP-Singapore.
- Click in the upper left corner of the page and choose Compute > Elastic Cloud Server.
- In the ECS list, locate the ECS ecs-client and click Remote Login in the Operation column.
- On the displayed page, click CloudShell.
- Enter the password you specify during the ECS ecs-client creation.
- Download sysbench.
wget -c https://github.com/akopytov/sysbench/archive/1.0.18.zip
- Install sysbench.
unzip 1.0.18.zip
cd sysbench-1.0.18
./autogen.sh
./configure
make
make install
- Log in to the MySQL database and create test database sbtest.
mysql -u root -P 3306 -h <host> -p -e "create database sbtest"
- Import test background data to the sbtest database.
sysbench --db-driver=mysql --mysql-host=<host> --mysql-port=<port> --mysql-user=<user> --mysql-password=<password> --mysql-db=sbtest --table_size=250000 --tables=25 --events=0 --time=600 oltp_read_write prepare
- Perform a pressure test.
sysbench --db-driver=mysql --mysql-host=<host> --mysql-port=<port> --mysql-user=<user> --mysql-password=<password> --mysql-db=sbtest --table_size=250000 --tables=25 --events=0 --time=600 --threads=<thread_num> --percentile=95 --report-interval=1 oltp_read_write run
Delete databases and tables to release storage space only after they are migrated using DRS.
sysbench --db-driver=mysql --mysql-host=<host> --mysql-port=<port> --mysql-user=<user> --mysql-password=<password> --mysql-db=sbtest --table_size=250000 --tables=25 --events=0 --time=600 oltp_read_write cleanup
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot