当前位置:网站首页>How gaussdb counts the response time of user SQL
How gaussdb counts the response time of user SQL
2022-06-25 11:06:00 【Hua Weiyun】
adopt PGXC_SQL_COUNT View , It can display in real time SELECT、INSERT、UPDATE、DELETE、
MERGE INTO Five kinds SQL、 as well as DDL、DML、DCL Node level and user level statistics results of the statement , knowledge
Do not use the current heavy business load query type , Measures the ability of the entire cluster and a single node to perform certain types of queries
force . By analyzing the above categories SQL Query count and response time statistics , Get the statistical results at the specified time ,
After calculation, the specified QPS Wait for Statistics . for example ,T1 moment ,USER1 Of SELECT The counting result is
X1,T2 The moment is X2, Then the user can be calculated SELECT Of the query QPS The value is (X2-X1)/(T2-T1). from
this , The cluster user level is available QPS Graph and cluster throughput , Monitor whether the business load of each user is sent
Have a drastic change . If there is a drastic change , You can locate specific statement types (SELECT/INSERT/UPDATE/
DELETE/MERGE INTO). Simultaneous observation QPS The curve can tell when the problem occurs , Combined with other work
have , Locate the problem . Ability to tune cluster performance 、 Provide basis for problem positioning .
PGXC_SQL_COUNT Definition
name | type | describe |
|---|---|---|
node_name | name | The name of the node |
user_name | name | user name |
select_count | bigint | SELECT Number |
update_count | bigint | UPDATE Number |
insert_count | bigint | INSERT Number |
delete_count | bigint | DELETE Number |
mergeinto_count | bigint | MERGE INTO Number |
ddl_count | bigint | DDL Number |
dml_count | bigint | DML Number |
dcl_count | bigint | DCL Number |
total_select_elapse | bigint | SELECT Total response time |
avg_select_elapse | bigint | SELECT Mean response time |
max_select_elapse | bigint | SELECT Maximum response time |
min_select_elapse | bigint | SELECT Minimum response time |
total_update_elapse | bigint | UPDATE Total response time |
avg_update_elapse | bigint | UPDATE Mean response time |
max_update_elapse | bigint | UPDATE Maximum response time |
min_update_elapse | bigint | UPDATE Minimum response time |
total_delete_elapse | bigint | DELETE Total response time |
avg_delete_elapse | bigint | DELETE Mean response time |
max_delete_elapse | bigint | DELETE Maximum response time |
min_delete_elapse | bigint | DELETE Minimum response time |
total_insert_elapse | bigint | INSERT Total response time |
avg_insert_elapse | bigint | INSERT Mean response time |
max_insert_elapse | bigint | INSERT Maximum response time |
min_insert_elapse | bigint | INSERT Minimum response time |
边栏推荐
- Netease's open source distributed storage system curve officially became the CNCF sandbox project
- Learn to learn self-study [learning to learn itself is more important than learning anything]
- Compilation of learning from Wang Shuang (1)
- QT: parsing JSON
- 网易开源的分布式存储系统 Curve 正式成为 CNCF 沙箱项目
- OODA工作法
- MySQL synchronous data configuration and shell script implementation
- Advanced single chip microcomputer -- development of PCB (2)
- 输出式阅读法:把学到的知识用起来
- Technical practice and development trend of video conference all in one machine
猜你喜欢

Use of three-level linkage plug-ins selected by provinces and cities

XSS攻击
![[observation] objectscale: redefining the next generation of object storage, reconstruction and innovation of Dell Technology](/img/82/8cac87231e51698ab17f1274b3a0bd.jpg)
[observation] objectscale: redefining the next generation of object storage, reconstruction and innovation of Dell Technology

Android之Kotlin语法详解与使用

Kotlin arrays and collections (1) {create arrays, use arrays, use for in loops to traverse arrays, use array indexes, and multi-dimensional arrays}

垃圾回收机制

SystemVerilog(十三)-枚举数据类型

MCU development -- face recognition application based on esp32-cam

At 16:00 today, Mr. sunxiaoming, a researcher of the Institute of computing, Chinese Academy of Sciences, took you into the quantum world

scrapy+scrapyd+gerapy 爬虫调度框架
随机推荐
Floating window --- create a system floating window (can be dragged)
ES 学习
Google Earth Engine(GEE)——evaluate实现一键批量下载研究区内的所有单张影像(上海市部分区域)
Network remote access using raspberry pie
Handling of NPM I installation problems
Performance file system
GaussDB 集群维护案例集-sql执行慢
Server rendering
一文了解Prometheus
[image fusion] image fusion based on morphological analysis and sparse representation with matlab code
Shen Lu, China Communications Institute: police open source Protocol - ofl v1.1 Introduction and Compliance Analysis
手机办理广州证券开户靠谱安全吗?
金仓KFS数据集中场景(多对一)部署
ZABBIX distributed system monitoring
【上云精品】节能提效!加速纺织业“智造”转型
OODA working method
scrapy+scrapyd+gerapy 爬虫调度框架
Think about it
软件测试 避免“试用期被辞退“指南,看这一篇就够了
每日3题(2)- 找出数组中的幸运数