EmergencyEMERGENCY? Get 24/7 Help Now!

Black-Box MySQL Performance Analysis with TCP Traffic

 | February 23, 2012 |  Posted In: Insight for DBAs, MySQL

PREVIOUS POST
NEXT POST

For about the past year I’ve been formulating a series of tools and practices that can provide deep insight into system performance simply by looking at TCP packet headers, and when they arrive and depart from a system. This works for MySQL as well as a lot of other types of systems, because it doesn’t require any of the contents of the packet. Thus, it works without knowledge of what the server and client are conversing about. Packet headers contain only information that’s usually regarded as non-sensitive (IP address, port, TCP flags, etc), so it’s also very easy to get access to this data even in highly secure environments.

I’ve finally written up a paper that shows some of my techniques for detecting problems in a system, which can be an easy way to answer questions such as “is there something we should look into more deeply?” without launching a full-blown analysis project first. It’s available from the white paper section of our website: MySQL Performance Analysis with Percona Toolkit and TCP/IP Network Traffic

PREVIOUS POST
NEXT POST
Baron Schwartz

Baron is the lead author of High Performance MySQL. He is a former Percona employee.

2 Comments

  • Baron

    Thanks for the white paper. I think this is definitely a useful tool to replicate prod load for benchmarking systems.

  • Great paper, Baron. I am a big fan of pt-tcp-model. It’s very versatile and because it is protocol agnostic, it can be used to analyze all sorts of different technologies including memcached, http, redis, mongodb, etc. I used it recently to help diagnose an upstream packet delivery issue – http://blog.9minutesnooze.com/analyzing-http-traffic-tcpdump-perconas-pttcpmodel/

Leave a Reply

 
 

Percona’s widely read Percona Data Performance blog highlights our expertise in enterprise-class software, support, consulting and managed services solutions for both MySQL® and MongoDB® across traditional and cloud-based platforms. The decades of experience represented by our consultants is found daily in numerous and relevant blog posts.

Besides specific database help, the blog also provides notices on upcoming events and webinars.
Want to get weekly updates listing the latest blog posts? Subscribe to our blog now! Submit your email address below and we’ll send you an update every Friday at 1pm ET.

No, thank you. Please do not ask me again.