首批通过分布式安全可靠测评,为关键业务系统打造
OBServer 日志出现 report write throttle info 信息
更新时间:2025-06-23 02:42
问题现象
OBServer 日志中出现如下信息。
observer.log.20221229045103:[2022-12-29 04:46:44.841893] INFO [COMMON] ob_fifo_arena.cpp:333 [28948][0][YB42AC147903-0005E8A737B6EAC3-0-0] [lt=16] [dc=0] report write throttle info(alloc_size=24, throttling_interval=1000, attr_=tenant_id=1005, label=15, ctx_id=1, prio=0, freed memory(MB):=0, last_base_ts=1672260404842042, cur_mem_hold=11970543616, trigger_mem_limit=21990232512, trigger_mem_remain=5497558128, tenant_memory_remain=5448400896, throttle_info_={decay_factor_:"3.002618459977128736e-04", alloc_duration_:3600000000, trigger_percentage_:80, memstore_threshold_:27487790640, period_throttled_count_:45, period_throttled_time_:315460, total_throttled_count_:181984128, total_throttled_time_:72058595126473244}, mem_overused=49157232)
问题原因
出现 MemStore 限流的日志提示,限流原因取决于参数 write_throttling_trigger_percentage。
write_throttling_trigger_percentage 用于设置触发写入速度的阈值。当 MemStore 已使用的内存达到该阈值时,会触发写入限速。当该配置项的值为 100 时,表示关闭写入限速机制。默认值为 100,取值范围为 [1, 100]。
有关该参数的详细信息,请参考 write_throttling_trigger_percentage。
影响版本
OceanBase 数据库 V2.x 和 V3.x 版本。