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

相关推荐
芝士爱知识a几秒前
【FinTech前沿】AlphaGBM:重塑期权交易的智能分析引擎——从原理到实践
数据结构·数据库·人工智能·alphagbm·期权
AC赳赳老秦1 分钟前
2026主权AI趋势:DeepSeek搭建企业自有可控AI环境,保障数据安全实战
大数据·数据库·人工智能·python·科技·rabbitmq·deepseek
仍然.3 分钟前
MYSQL---事务
数据库·mysql
king_harry8 分钟前
openGauss 6.0 主备集群备份与恢复实战指南:基于 gs_probackup
数据库·opengauss·gs_probackup
ruxshui18 分钟前
MySQL备份核心指南
数据库·mysql
霖霖总总1 小时前
[小技巧73]MySQL UUID 全面解析:UUID 的原理、结构与最佳实践
数据库·mysql
tod1131 小时前
Redis C++ 客户端开发全流程指南
数据库·c++·redis·缓存
w_t_y_y1 小时前
MySQL原理(三)锁定机制(4)常见的行锁行为&影响哪些操作&对DB的影响
数据库
沧澜sincerely1 小时前
组合查询(UNION)
数据库·union·union all