Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to track effects of my.cnf changes to reach top optimization of MySQL?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to track effects of my.cnf changes to reach top optimization of MySQL?

postcdpostcd Member
edited September 2015 in Help

Hello,

my.cnf is configuration file for MySQL server, please is there anyone who can share good way on how to track effects of this file modifications?

i mean so i can know if changes was beneficial (lower load on server..) or not. im using mysqltuner.pl, i can copy/paste its results and compare it somehow, but its very hard for me to orientate in it to see if my last modification was beneficial.

Is there any smart/simple way to monitor my.cnf changes so it allows one to easilly see how to tweak settings further to reach top optimization of mysql server?

Thank you

Comments

  • jarjar Patron Provider, Top Host, Veteran

    If it's me I'm running "watch mysqladmin processlist" while also watching memory+CPU usage and doing some basic load testing on my web application.

    There may be other ways but you can't knock good old fashioned "sit there and watch it work" :)

    Thanked by 2coolice NocRoom
  • quadhostquadhost Member
    edited September 2015

    That depends on what you mean by "optimization"...

    Are you looking to increase the performance of mysql or minimise the application resource usage?

    @Jar said:

    There may be other ways but you can't knock good old fashioned "sit there and watch it work" :)

    Learn by doing, it's always fun.

    If your running it on big data queries or samples and looking to reduce query times just re-run the query/sample. @Jar's described method works well for monitoring load/usage.

    Thanked by 1guyz92
  • optimize mysql performance without changing php/application

  • Are you asking regarding over time, or instantaneously? There doesn't seem to be any good packages for monitoring SQL server performance, and the ones that do exist present data in a way that doesn't make sense to me. I will admit it's probably been about 8 years since I looked, though.

    I ended up rolling my own to provide me the data that I want to know. Why don't you do the same? It's a great way to learn the inner workings of MySQL, although if you're just running a script and hoping for the best, may not be your desired level of involvement.

    Here's mine:

  • postcdpostcd Member
    edited September 2015

    @Damian: Damian, im rather asking "over time". target is just the best optimised mysql config. Seems i canot find any easy to understand tool to help in fine-tuning mysql.
    Such tool would have to maybe work with mysql slow log, somehow record mysql tmpdir usage and mysql server stats, but im not a programmer.

    PS: Your graphs looks nice, the Config Server Firewall allows similar graphs (but not that detailed like yours) and also Munin shows some graphs of MySQL and CPU these ones:

    :: MySQL queries

    :: MySQL slow queries

    :: MySQL threads

    :: MySQL throughput

  • MySQL collects statistics itself and you can see them with the show status query. Problem is interpreting them requires DBA level knowledge. This is an intro:

    http://www.techrepublic.com/article/understanding-the-performance-statistics-from-mysqls-show-status-command/

    Also install mytop

  • postcd said: my.cnf is configuration file for MySQL server, please is there anyone who can share good way on how to track effects of this file modifications?

    i use my own script mysqlmymonlite.sh http://mysqlmymon.com :)

  • @eva2000 said:
    i use my own script mysqlmymonlite.sh http://mysqlmymon.com :)

    Looks like pretty neat. Will try it :)

    Thanks !!

  • postcdpostcd Member
    edited September 2015

    mysqlmymonlite.sh is related but does not allow me easy mysql server fine-tuning without deeper DBA knowledge.

Sign In or Register to comment.