gv$unit_load_balance_event_history会记录哪些事件

ob版本:3.2.3
1.gv$unit_load_balance_event_history和__all_rootservice_event_history是否可以认为完全一样?
2.__all_rootservice_event_history具体的都可以记录哪些事件?
3.__all_server_event_history里又会记录哪些事件呢?
4.__all_rootservice_event_history和__all_server_event_history的记录默认会保留多久呢?
5.这些有没有相关介绍的比较详细的文档可以参考的呢?

1 个赞

1、gv$unit_load_balance_event_history是副本迁移的视图,这个视图是从__all_rootservice_event_history表中引用的,可以理解未__all_rootservice_event_history包括了gv$unit_load_balance_event_history
2、__all_rootservice_event_history记录切主,副本迁移,备份恢复,合并,observer上下线等一些需要rs调度的任务
3、__all_server_event_history记录create_partition,冻结转储,增加副本,修改参数等一些需要server层面调度的任务
4、 __all_rootservice_event_history 和 __all_server_event_history 表中数据可回收的时间间隔由集群级配置项 ob_event_history_recycle_interval控制,默认7天

1 个赞


在V3教材中写道__all_server_event_history保留时间是2天,这个在官网中是否有明确一些的出处?应该以什么为准?

1 个赞

1、2277 版本官网文档中已经添加了_all_server_event_history 表数据是由配置项ob_event_history_recycle_interval 控制,默认是7天的描述。3.x与2277版本一致,都是由配置项ob_event_history_recycle_interval 控制。

2、v3教材中的__all_server_event_history保留2天应该是老版本的ob中是保留2天(版本应该是2230和2250),后期官网教材会进行修改

1 个赞

非常感谢~~

1 个赞

__all_rootservice_event_history这个内部表的默认保留我查parameters是7天,但是我查最大最小时间的时候这个保留了远大于7天的



能否帮忙准确确认3.x版本的__all_rootservice_event_history和__all_server_event_history的默认保留时间,因为实际查询完全不一致

1 个赞

__all_server_event_history中的module字段有一个daily_merge,这里相当于是说这个表也记录集群合并的记录吗