Skip to main content

Optimal my.cnf settings for a VPS running MariaDB?

Comments

3 comments

  • cPanelMichael
    We're looking to improve performance as it can be slow at times

    Hello :) You may want to run a command such as "mysqladmin processlist" during the times it's slow to see if any particular database is the culprit. I'll leave this thread open for additional user-feedback about the optimization to your MySQL configuration. Thank you.
    0
  • soaringeagle
    well i'm no expert but i have been tuning my own server awhile learning along the way your query cache hit rates low so increase the query cache size you only have 2 gigs ram wich isn't a whole lot but your not using much of it at all the more ram you use (within reason) the better the performance so i would start by doubling the query cache size take it from there you also didn't include the recommendations from the tuner script which i bet said to increase query cache size? you can safely allocate up to about 70% of available ram to database caches and buffers and the more ram is utilized the less it will have to access tables from disk generally after its been running 24 hours the recommendations provided can be trusted usually, some may require a little research before you tweak them i'd also consider doubling your ram, and then using more of it for cache and buffers the query cache hit rate you want around 99%
    0
  • anton_latvia
    Check out couple of my tests and recommendations Optimizing MySQL, Intermediate results - Norsk Webhotell og Domener
    0

Please sign in to leave a comment.