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

相关推荐
2501_945423541 小时前
用Matplotlib绘制专业图表:从基础到高级
jvm·数据库·python
2301_793804691 小时前
使用Python处理计算机图形学(PIL/Pillow)
jvm·数据库·python
哆啦A梦15888 小时前
Springboot整合MyBatis实现数据库操作
数据库·spring boot·mybatis
Zzzzmo_8 小时前
【MySQL】JDBC(含settings.xml文件配置/配置国内镜像以及pom.xml文件修改)
数据库·mysql
FirstFrost --sy9 小时前
MySQL内置函数
数据库·mysql
2401_879693879 小时前
将Python Web应用部署到服务器(Docker + Nginx)
jvm·数据库·python
reembarkation9 小时前
光标在a-select,鼠标已经移出,下拉框跟随页面滚动
java·数据库·sql
eggwyw10 小时前
MySQL-练习-数据汇总-CASE WHEN
数据库·mysql
星轨zb10 小时前
通过实际demo掌握SpringSecurity+MP中的基本框架搭建
数据库·spring boot·spring security·mp
treacle田10 小时前
达梦数据库-配置本地守护进程dmwatcher服务-记录总结
数据库·达梦数据库·达梦数据库local数据守护