暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

openGasuss统计预写日志write与sync的次数频率与数据量

MTL 2022-10-29
380
  • gs_walwriter_flush_stat(int operation)

描述:用于统计预写日志write与sync的次数频率与数据量,以及xlog文件的信息。

返回值类型:record

gs_walwriter_flush_stat参数说明:

参数类型

参数名

类型

描述

输入参数

operation

int

  • -1:关闭统计开关(默认状态为关闭)。
  • 0:打开统计开关。
  • 1:查询统计信息。
  • 2:重置统计信息。

输出参数

write_times

uint64

Xlog调用write接口的次数。

输出参数

sync_times

uint64

Xlog调用sync接口次数。

输出参数

total_xlog_sync_bytes

uint64

Backend线程请求写入xlog总量统计值。

输出参数

total_actual_xlog_sync_bytes

uint64

调用sync接口实际刷盘的xlog总量统计值。

输出参数

avg_write_bytes

uint32

每次调用XLogWrite接口请求写的xlog量。

输出参数

avg_actual_write_bytes

uint32

实际每次调用write接口写的xlog量。

输出参数

avg_sync_bytes

uint32

平均每次请求sync的xlog量。

输出参数

avg_actual_sync_bytes

uint32

实际每次调用sync刷盘xlog量。

输出参数

total_write_time

uint64

调用write操作总时间统计(单位:us)。

输出参数

total_sync_time

uint64

调用sync操作总时间统计(单位:us)。

输出参数

avg_write_time

uint32

每次调用write接口平均时间(单位:us)。

输出参数

avg_sync_time

uint32

每次调用sync接口平均时间(单位:us)。

输出参数

curr_init_xlog_segno

uint64

当前最新创建的xlog段文件编号。

输出参数

curr_open_xlog_segno

uint64

当前正在写的xlog段文件编号。

输出参数

last_reset_time

text

上一次重置统计信息的时间。

输出参数

curr_time

text

当前时间。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论