当前位置:网站首页>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 |
边栏推荐
- 《天天数学》连载52:二月二十日
- 【系统分析师之路】第六章 复盘需求工程(综合知识概念)
- 每日3題(3)-檢查整數及其兩倍數是否存在
- 10.1. Oracle constraint deferred, not deferred, initially deferred and initially deferred
- Simple use of SVN
- GaussDB 集群维护案例集-sql执行慢
- 炒股票开户的话,手机开户安全吗?有谁知道啊?
- Daily 3 questions (2) - find out the lucky numbers in the array
- scrapy+scrapyd+gerapy 爬虫调度框架
- 金仓数据库 KingbaseES 插件dbms_session
猜你喜欢

Network remote access using raspberry pie

Oracle彻底卸载的完整步骤

Opencv learning (II) -- installing opencv on raspberry pie

Explanation and use of kotlin syntax for Android

Software testing to avoid being dismissed during the probation period

WPF prism framework

Es learning

Nuxtjs actual combat case

龙书虎书鲸书啃不动?试试豆瓣评分9.5的猴书

开源社邀请您参加OpenSSF开源安全线上研讨会
随机推荐
每日3题(3)-检查整数及其两倍数是否存在
一个数学难题,难倒两位数学家
Open source invites you to participate in the openssf Open Source Security Online Seminar
学会自学【学会学习本身,比学什么都重要】
看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-7
Coscon'22 lecturer solicitation order
今天16:00 | 中科院计算所研究员孙晓明老师带大家走进量子的世界
After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-7
Google Earth Engine(GEE)——evaluate實現一鍵批量下載研究區內的所有單張影像(上海市部分區域)
撸一个随机数生成器
Android之Kotlin语法详解与使用
Writing wechat applet with uni app
性能之内存篇
Es learning
成长:如何深度思考与学习
WPF binding expression and binding data source (I)
Daily Mathematics Series 52: February 20
GCC related
Simple use of SVN
中國信通院沈瀅:字體開源協議——OFL V1.1介紹及合規要點分析