【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 数据库所有版本。

相关推荐
我滴老baby2 分钟前
2026年AI Agent将走向何方?十大趋势深度解析:从多模态融合到自主决策,从端侧部署到具身智能,提前布局下一个万亿级市场
数据库·人工智能·知识图谱
AC赳赳老秦16 分钟前
OpenClaw与思维导图工具联动:自动生成工作规划脑图、拆解任务节点,适配职场管理
java·大数据·服务器·数据库·python·php·openclaw
zhishijike36 分钟前
全国行政区划sql(省市区)
数据库·sql·mysql
KaMeidebaby1 小时前
卡梅德生物技术快报|单 B 细胞抗体技术:全犬源单抗制备流程、关键参数与性能验证
前端·数据库·其他·百度·新浪微博
jiajia_lisa1 小时前
跨境物流通关提速,助力外贸高效运转
oracle
KG_LLM图谱增强大模型1 小时前
scHilda:大模型与知识图谱分层融合,突破单细胞分型瓶颈
数据库·人工智能·知识图谱
凯瑟琳.奥古斯特1 小时前
力扣3654:二维矩阵连续空位统计
数据结构·数据库·算法·职场和发展
满昕欢喜1 小时前
SQL Server的概述与安装
数据库·sqlserver
2501_930707781 小时前
使用C#代码在 Excel 中为数据透视表添加筛选器
数据库·数据挖掘·数据分析
Irene19911 小时前
(课堂笔记)MySQL 基础(对比 Oracle 学习)
mysql·oracle