当前位置:网站首页>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
- Sign up to open the third session of the "flying oar hacker marathon". It's been a long time
- Handling of NPM I installation problems
- Multiple environment variables
- c盘使用100%清理方法
- CSRF攻击
- Is it safe to speculate in stocks by mobile phone?
- 戴尔科技演绎“快”字诀,玩转CI/CD
- Learn to learn self-study [learning to learn itself is more important than learning anything]
猜你喜欢

查询法,中断法实现USART通信

Complete steps for a complete Oracle uninstall

无心剑中译伊玛·拉扎罗斯《新巨人·自由女神》

Binder explanation of Android interview notes

【图像融合】基于形态学分析结合稀疏表征实现图像融合附matlab代码
![[file containing vulnerability-03] six ways to exploit file containing vulnerabilities](/img/4f/495c852eb0e634c58e576d911a2c14.png)
[file containing vulnerability-03] six ways to exploit file containing vulnerabilities

Shen Lu, China Communications Institute: police open source Protocol - ofl v1.1 Introduction and Compliance Analysis

XSS attack

Netease's open source distributed storage system curve officially became the CNCF sandbox project

Garbage collection mechanism
随机推荐
金仓KFS数据级联场景部署
Kotlin arrays and collections (1) {create arrays, use arrays, use for in loops to traverse arrays, use array indexes, and multi-dimensional arrays}
无心剑中译伊玛·拉扎罗斯《新巨人·自由女神》
数组结构整理
CDN+COS搭建图床超详细步骤
中國信通院沈瀅:字體開源協議——OFL V1.1介紹及合規要點分析
金仓数据库 KingbaseES 插件ftutilx
金仓数据库 KingbaseES 插件DBMS_RANDOM
性能之文件系统篇
手机办理广州证券开户靠谱安全吗?
Advanced single chip microcomputer -- development of PCB (2)
Network protocol learning -- lldp protocol learning
Kotlin implements a simple login page
c盘使用100%清理方法
Simple use of SVN
Cdn+cos ultra detailed steps for drawing bed construction
[image fusion] image fusion based on morphological analysis and sparse representation with matlab code
Android: generic mapping analysis of gson and JSON in kotlin
keep-alive
Google Earth Engine(GEE)——evaluate實現一鍵批量下載研究區內的所有單張影像(上海市部分區域)