Solved

MySQL loading test

Posted on 2012-12-21
3
240 Views
Last Modified: 2012-12-30
Dear all,

We will undergo MySQL loading testing after migrating from MySQL 5.0 to 5.5, after that we might like to do some loading test.

We will find some slow query from the slow query log and then do the load test based on these query.

Based on you all expereience, how can we load simulate that ? any tools you guys will use ?

or if we find slow query from the slow query log is not a good idea at the beginning, what you guy will do usualy ?
0
Comment
Question by:marrowyung
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Leon Teale
Comment Utility
you need mysqlslap my friend,

mysqlslap is a diagnostic program designed to emulate client load for a MySQL server and to report the timing of each stage. It works as if multiple clients are accessing the server. mysqlslap is available as of MySQL 5.1.4.

http://dev.mysql.com/doc/refman/5.1/en/mysqlslap.html
0
 
LVL 6

Accepted Solution

by:
Leon Teale earned 400 total points
Comment Utility
Examples:

Supply your own create and query SQL statements, with 50 clients querying and 200 selects for each (enter the command on a single line):

mysqlslap --delimiter=";"
  --create="CREATE TABLE a (b int);INSERT INTO a VALUES (23)"
  --query="SELECT * FROM a" --concurrency=50 --iterations=200
0
 
LVL 15

Assisted Solution

by:Insoftservice
Insoftservice earned 100 total points
Comment Utility
agree with @hexemes mysqlslap and super smack may be helpfull to u.
Please go through the below link.

http://www.techrepublic.com/blog/howdoi/how-do-i-stress-test-mysql-with-mysqlslap/133
http://serverfault.com/questions/31933/mysql-load-stress-testing
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Creating and Managing Databases with phpMyAdmin in cPanel.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now