Solved

MySQL loading test

Posted on 2012-12-21
3
244 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 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

21 Experts available now in Live!

Get 1:1 Help Now