【OceanBase诊断调优】—— 如何查看 Root Service 切换完成的时间点

本文详述如何查看 Root Service 切换完成的时间点。

在主 Root Service 节点上的 rootservice.log 搜索。

复制代码
grep -i "START_SERVICE: full_service !!! start to work!!" rootservice.log

[2023-12-08 14:35:58.927245] INFO  [RS] ob_root_service.cpp:7111 [27152][0][YB42AC1C0EFA-00060BE72B4C9723-0-0] [lt=3] [dc=0] [NOTICE] START_SERVICE: full_service !!! start to work!!

也可以通过 __all_rootservice_event_history__all_server_event_history 查看相关历史记录。

复制代码
select * from __all_rootservice_event_history where module='root_service' and event in ('start_rootservice','stop_rootservice') order by gmt_create desc;

select * from __all_server_event_history where module='election' and event='switch_leader' and value2 like '%tid:1099511627777%' order by gmt_create desc limit 20;

tid:1099511627777 为 1 号表(__all_core_table)的 table_id

适用版本

OceanBase 数据库所有版本。

相关推荐
哈__7 小时前
KES-Operator重塑Kubernetes环境下的KES数据库集群管理
数据库·kubernetes·operator·kes
IvorySQL8 小时前
IvorySQL 5.6 发布:PG 18.6 内核升级,沙盒即开即用
数据库·人工智能·postgresql
CNSSIRD数据库9 小时前
中国企业环境信用数据库2003-2026
大数据·数据库·数据分析·论文笔记
fd320010 小时前
达梦数据库更新统计信息后仍走旧执行计划解决方案
数据库
华章酱10 小时前
MySQL幻读是怎么出现的
数据库·mysql·幻读
浅念-11 小时前
Redis基础详解:单线程模型、String与Hash数据结构
服务器·数据库·redis·sql·mysql·nosql数据库·nosql
updayday85411 小时前
离职域账号状态变更与Ping64操作记录核对
大数据·网络·数据库·安全·智能路由器
Nturmoils11 小时前
只恢复一张表,别把整个库都还回去
数据库
龙腾AI白云12 小时前
大语言模型:从语言理解到通用智能的跃迁
数据库·人工智能·机器学习·知识图谱
SelectDB12 小时前
快手基于 Apache Doris 千亿多模态检索的实践
大数据·数据库·数据分析