MySQL Forums
Forum List  »  Newbie

Re: mysqltuner optimization
Posted by: Peter Brawley
Date: March 01, 2018 07:27PM

Not possible to base recommendations on mysqltuner suggestions, except to disagree about the query vcache--its discontinued in 8.0 mainy because it does not often help performance, so it's probably best turned off.

You need to find the queries that trigger timeouts, and fix them.

If you want overall tuning suggestions on the servers, for each ppost the results of ...

select engine,data,indexes,total
from (
  select 
    ifnull(engine,'TOTALS') as engine, 
    concat(data,' GB') as data, 
    concat(indexes,' GB') as indexes, 
    concat(tot,' GB') as total,
    if(engine is null,-1,tot) as ord
  from (
    select   
      engine,  
      round( sum(data_length)/1024/1024/1024, 1 ) as data,  
      round( sum(index_length)/1024/1024/1024, 1 ) as indexes,  
      round( sum(data_length+index_length)/1024/1024/1024, 1 ) as tot
    from information_schema.tables
    where engine is not null and engine not in('information_schema','performance_schema')
    group by engine with rollup
  ) sums
) list
order by list.ord desc;

And please post the results of running these queries in the mysql client program ...

show variables;
show global status;

and from the OS ...

free -m

Options: ReplyQuote


Subject
Written By
Posted
March 01, 2018 06:34PM
Re: mysqltuner optimization
March 01, 2018 07:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.