xinyiZzz commented on code in PR #47462:
URL: https://github.com/apache/doris/pull/47462#discussion_r1967000753


##########
be/src/common/daemon.cpp:
##########
@@ -547,7 +550,9 @@ void Daemon::cache_adjust_capacity_thread() {
             doris::GlobalMemoryArbitrator::cache_adjust_capacity_cv.wait_for(
                     l, std::chrono::milliseconds(100));
         }
-        double adjust_weighted = 
GlobalMemoryArbitrator::last_cache_capacity_adjust_weighted;
+        double adjust_weighted = std::min<double>(
+                GlobalMemoryArbitrator::last_cache_capacity_adjust_weighted,
+                
GlobalMemoryArbitrator::last_wg_trigger_cache_capacity_adjust_weighted);

Review Comment:
   任何 Query 报错进程内存超限,就把所有 Cache 都清空,感觉有点激进,线上环境可能某个大查询导致所有 Cache 
清空后,集群所有任务的耗时增加,QPS降低。
   
   就这样观察下吧,之前讨论过这个问题,目前这样实现好解释



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to