mysqlconfigurer icon indicating copy to clipboard operation
mysqlconfigurer copied to clipboard

MySQL Latency graph fluctuations

Open drupaladmin opened this issue 1 year ago • 3 comments

The MySQL Latency graph can exhibit significant fluctuations even when there are no changes within the system.

drupaladmin avatar Feb 22 '24 19:02 drupaladmin

The problem is on your query, you consider each type of query individually, so if one user make 2 or 3 queries longest than your value only one time, it's fuck your latency, your should include the COUNT_STAR * AVG_TIMER_WAIT / COUNT_STAR then group by each range and count 95%.

Esysteme avatar Apr 28 '24 17:04 Esysteme

@Esysteme Please clarify what did you mean by the expression COUNT_STAR * AVG_TIMER_WAIT / COUNT_STAR? it is equal to AVG_TIME_WAIT, which is used in the current latency calculation.

kochetovd avatar May 04 '24 07:05 kochetovd

no because in your system, you take all query with same value.

but few queries you executed only once can totally fuck you time response, and their not representative of queries executed on your server. that's why need to take the number of execution in consideration.

Imagine you have one query, the most executed on your server, more than all others. you optimized her of 25%; it's will be totally a game changer for your server. but with your query we will not be able to see it.

i will publish mine later (but will be without 95 percentil) when i back on my computer

Esysteme avatar May 04 '24 08:05 Esysteme