当前位置:网站首页>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 |
边栏推荐
- 开源社邀请您参加OpenSSF开源安全线上研讨会
- Previous string inversion topic
- Flutter adds event listening | subscription
- Daily 3 questions (3) - check whether integers and their multiples exist
- Oracle彻底卸载的完整步骤
- [the path of system analyst] Chapter 6: Double inventory demand engineering (comprehensive knowledge concept)
- MySQL synchronous data configuration and shell script implementation
- Compilation of learning from Wang Shuang (1)
- Apache ShenYu 入门
- MCU development -- face recognition application based on esp32-cam
猜你喜欢
随机推荐
Shen Lu, China Communications Institute: police open source Protocol - ofl v1.1 Introduction and Compliance Analysis
Advanced single chip microcomputer -- development of PCB (2)
从GEE中免费获取全球人类住区层 (GHSL) 数据集
视频会议一体机的技术实践和发展趋势
Learn to learn self-study [learning to learn itself is more important than learning anything]
【图像融合】基于形态学分析结合稀疏表征实现图像融合附matlab代码
Shen Ying, China Academy of communications and communications: font open source protocol -- Introduction to ofl v1.1 and analysis of key points of compliance
中国信通院沈滢:字体开源协议——OFL V1.1介绍及合规要点分析
金仓数据库 KingbaseES 插件ftutilx
手机炒股安全吗?
Checking whether the double value is an integer - Swift - checking if a double value is an integer - swift
June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “fmt“ ) func mai
zabbix分布式系统监控
Is it safe to open a stock account on the compass?
Ouverture de l'inscription | le troisième marathon des hackers de pagaie est arrivé comme prévu.
Opencv learning (I) -- environment building
Network protocol learning -- lldp protocol learning
Detailed explanation of Android interview notes handler
Task03 probability theory
【上云精品】节能提效!加速纺织业“智造”转型








