跳到主要内容
版本:2.x

gp_stat_archiver

gp_stat_archiver 视图提供有关 Apache Cloudberry 集群中每个 Segment 的 WAL 归档进程的信息。它包括成功归档的 WAL 文件数量、上次归档 WAL 文件的名称和时间、失败的归档尝试次数以及上次失败的详细信息等指标。此视图对于监视和诊断整个集群的 WAL 归档非常有用。

类型引用描述
gp_segment_idintegerSegment (或 Coordinator) 实例的唯一标识符。
archived_countbigint已成功归档的 WAL 文件数量。
last_archived_waltext最近成功归档的 WAL 文件的名称。
last_archived_time timestamp with time zone最近成功归档操作的时间。
failed_countbigint归档 WAL 文件的失败尝试次数。
last_failed_waltimestamp with time zone最近失败归档操作的 WAL 文件名称。
last_failed_timebigint最近失败归档操作的时间。
stats_resettimestamp with time zone上次重置这些统计信息的时间。

此系统视图在 gp_stat_archiver_summary 系统视图中进行了汇总。