xinyiZzz commented on code in PR #31220:
URL: https://github.com/apache/doris/pull/31220#discussion_r1497487981
##########
be/src/olap/olap_server.cpp:
##########
@@ -287,6 +286,16 @@ void StorageEngine::_cache_clean_callback() {
} else {
_clear_segment_cache = false;
}
+ if (config::disable_storage_page_cache) {
Review Comment:
// Dynamically modify the config to clear the cache, each time the disable
cache will only be cleared once.
这里实际提供了一个手动清cache的方式,通过 http 动态修改 be conf,可以立即清理掉cache并禁用
curl -X POST
http://xxxx:8040/api/update_config?disable_storage_page_cache=true
再动态把
disable_storage_page_cache=false,就可以重新启用cache,是之前看内存问题用户的诉求,clickhouse可以直接通过
SQL 清cache,这里用http接口简单实现了下
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]