brpc
brpc copied to clipboard
mbvar设定了多label,某些label对应的value是不断增长的,比如label:table,version,如果服务一直运行,最终会达到bvar_max_dump_multi_dimension_metric_number,这时新的bvar就不能写入,这种场景下,是不是改成lru,淘汰旧的比较好。
Is your feature request related to a problem? (你需要的功能是否与某个问题有关?) mbvar达到上限
Describe the solution you'd like (描述你期望的解决方法) 达到bvar_max_dump_multi_dimension_metric_number后淘汰旧bvar
Describe alternatives you've considered (描述你想到的折衷方案)
Additional context/screenshots (更多上下文/截图)
may I know it there are any further discussion on this issue? 请问下这个问题有什么进展吗?
@wwbmmm 请问下目前有什么比较推荐的解决办法嘛?
https://github.com/apache/brpc/blob/master/src/bvar/mvariable.cpp#L264