Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

MySQL loading test

Posted on 2012-12-21
3
249 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
ID: 38712621
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
ID: 38712625
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
ID: 38715807
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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