Statistics of QPS values in the last N seconds (including select, insert, etc. per second) mysql> select variable_name,sum(per_sec) as qps from (select straight_join lower(gs0.variable_name) as variable_name, (gs1.variable_value - gs0.variable_value)/5 as per_sec from ( select variable_name ,variable_value from information_schema.global_status where variable_name in ('com_select','com_update','com_insert','com_replace','com_delete') union all select '',sleep(5) from dual ) as gs0 join information_schema.global_status gs1 using (variable_name)) t group by variable_name with rollup; +---------------+---------+ Statistics on qps value, number of slow queries, etc. since db was started mysql> \s The above super simple qps statistics method (recommended) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Sample code for implementing music player with native JS
>>: Detailed explanation of the construction and use of docker private warehouse
Recently, when I was using C# to make a Web progra...
Table of contents Preface 1.notnull 2. unique 3. ...
When using Dreamweaver or FrontPage to create HTM...
Add table fields alter table table1 add transacto...
Table of contents 1. Introduction 2. Analysis of ...
Without further ado, let's take a look at the...
Table of contents background Target Effect Ideas ...
Table of contents 1. Keywords 2. Deconstruction 3...
Why use Server-Side Rendering (SSR) Better SEO, s...
Table of contents What is async? Why do we need a...
This article describes how to use Docker's mu...
The bash history command in Linux system helps to...
Table of contents 1. The simplest example 2. Cust...
Start the centos8 virtual machine and press the u...
Result:Implementation code: <!DOCTYPE html>...