-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display功能补充 #667
Merged
Merged
display功能补充 #667
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##lvss## processlist实时会话信息汇总(取并发度前十的信息) 对业务租户根据sql_id和截取的sqltext进行汇总,简单展示各类sql的并发情况。 字段主要包括:租户名/执行IP/用户名/sql_id或截取前40位的sql文本/会话平均执行时间/会话最大的执行时间/会话数量/session_id/3.x及前版本还有父session_id #####cpu######### tenant的cpu信息 展示不同租户在不同节点的cpu使用情况(计算单位是内部方法,不是实际的cpu核数) 字段含义为 当前查询时间/租户名/租户id/节点ip/cpu使用量/cpu总量/cpu使用百分比 ######index########### 查询表上的index信息 字段含义分别为 租户名/索引的table_id/表所属用户/表明/索引所属用户/索引名/索引的列(按顺序) #####leader######### ob集群的leader信息(分为全库/租户/表三个粒度) 字段含义分别为 租户id/租户名/节点ip/leader或follow的角色/分区数量 #######lock########### 库里当前所有表持有锁的信息 字段含义分别为 租户id/节点ip/table_id(4.x还有ls_id和tablet_id)/表名/会话id/创建时间 ########locked######## 库里被阻塞会话的信息 字段含义分别为 节点ip/table_id/表名/会话id/阻塞该会话的会话id/锁的模式/锁的类型 ####locktab######## 某张表上持有锁的信息 字段含义分别为 租户id/节点ip/table_id/表名/会话id/hash信息/创建时间/已经持有了多久 ####mem######## 所有tenant的mermory和memstore信息 mermory相关信息字段含义分别为 检查时间/租户id/租户名/节点ip/内存使用/最大内存/内存使用百分比 memstore相关信息字段含义分别为 租户id/节点ip/memstore活跃内存/memstore触发转储的内存/memstore转储使用百分比/已经转储次数/memstore使用内存/memstore总内存/memstore使用百分比 ###obtab######## ob内部表信息 字段含义为内部表表名 ####splan######## 执行记录信息 字段含义分别为 用户名/节点ip/计划id/租户id/计划类型/第一次加载时间/最后一次应用时间/平均执行时间/执行次数/总耗时/最慢的耗时/慢耗时执行的时间/慢耗时的执行次数/是否使用ps协议/平均返回行数/outline的id ####aplan######### 实际执行计划信息 字段含义分别为 计划id/算子/对象名/行数/代价 ####status########## server status信息与原有server_info部分字段一致,增添了集群名的列,可以确认连接环境 ###tabndv######## 查询表ndv信息 字段含义分别为 库名/表名/字段名/字段类型/ndv值/空值 4.x之前版本还有分区信息 ####tenant###### tenant信息与原有tenant_info功能点不冲突 展示库里所有租户的 租户id/租户名/zonelist/primary_zone/状态 #####trans########### ob集群的长事务信息 字段含义分别为 节点ip/会话id/(3.x及前版本包括表名,table_id)/创建时间/当前时间/会话时间/事务类型/trans_id/详细的事务分析类型/
good job |
Teingi
reviewed
Jan 10, 2025
@@ -0,0 +1,14 @@ | |||
info_en: "[status]" | |||
info_cn: "[server status信息]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这一条和obdiag display scene run --scene=observer.server_info 重复了,需要整合成一条
Teingi
reviewed
Jan 10, 2025
Teingi
reviewed
Jan 10, 2025
Teingi
reviewed
Jan 10, 2025
Teingi
approved these changes
Jan 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Solution Description
lvss
processlist实时会话信息汇总(取并发度前十的信息)
对业务租户根据sql_id和截取的sqltext进行汇总,简单展示各类sql的并发情况。
字段主要包括:租户名/执行IP/用户名/sql_id或截取前40位的sql文本/会话平均执行时间/会话最大的执行时间/会话数量/session_id/3.x及前版本还有父session_id
cpu
tenant的cpu信息
展示不同租户在不同节点的cpu使用情况(计算单位是内部方法,不是实际的cpu核数)
字段含义为 当前查询时间/租户名/租户id/节点ip/cpu使用量/cpu总量/cpu使用百分比
index
查询表上的index信息
字段含义分别为 租户名/索引的table_id/表所属用户/表明/索引所属用户/索引名/索引的列(按顺序)
leader
ob集群的leader信息(分为全库/租户/表三个粒度)
字段含义分别为 租户id/租户名/节点ip/leader或follow的角色/分区数量
lock
库里当前所有表持有锁的信息
字段含义分别为 租户id/节点ip/table_id(4.x还有ls_id和tablet_id)/表名/会话id/创建时间
locked
库里被阻塞会话的信息
字段含义分别为 节点ip/table_id/表名/会话id/阻塞该会话的会话id/锁的模式/锁的类型
locktab
某张表上持有锁的信息
字段含义分别为 租户id/节点ip/table_id/表名/会话id/hash信息/创建时间/已经持有了多久
mem
所有tenant的mermory和memstore信息
mermory相关信息字段含义分别为 检查时间/租户id/租户名/节点ip/内存使用/最大内存/内存使用百分比 memstore相关信息字段含义分别为 租户id/节点ip/memstore活跃内存/memstore触发转储的内存/memstore转储使用百分比/已经转储次数/memstore使用内存/memstore总内存/memstore使用百分比
obtab
ob内部表信息
字段含义为内部表表名
splan
执行记录信息
字段含义分别为 用户名/节点ip/计划id/租户id/计划类型/第一次加载时间/最后一次应用时间/平均执行时间/执行次数/总耗时/最慢的耗时/慢耗时执行的时间/慢耗时的执行次数/是否使用ps协议/平均返回行数/outline的id
aplan
实际执行计划信息
字段含义分别为 计划id/算子/对象名/行数/代价
status
server status信息与原有server_info部分字段一致,增添了集群名的列,可以确认连接环境
tabndv
查询表ndv信息
字段含义分别为 库名/表名/字段名/字段类型/ndv值/空值
4.x之前版本还有分区信息
tenant
tenant信息与原有tenant_info功能点不冲突
展示库里所有租户的 租户id/租户名/zonelist/primary_zone/状态
trans
ob集群的长事务信息
字段含义分别为 节点ip/会话id/(3.x及前版本包括表名,table_id)/创建时间/当前时间/会话时间/事务类型/trans_id/详细的事务分析类型/