wenzhenghu commented on code in PR #55772:
URL: https://github.com/apache/doris/pull/55772#discussion_r2476530966
##########
fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java:
##########
@@ -2631,6 +2635,36 @@ public void setSkewRewriteAggBucketNum(int num) {
"Make the READ_SLICE_SIZE variable configurable to reduce the
impact caused by read amplification."})
public int mergeReadSliceSizeBytes = 8388608;
+ @VariableMgr.VarAttr(name = FILE_CACHE_QUERY_LIMIT_PERCENT, needForward =
true,
+ checker = "checkFileCacheQueryLimitPercent",
+ description = {"限制用户的单个查询能使用的 FILE_CACHE 比例(用户设置)。",
+ "Limit the FILE_CACHE percent that a single query of a user
can use "
+ + "(set by the user via session variables)."})
+ public int fileCacheQueryLimitPercent = -1;
+
+ public void checkFileCacheQueryLimitPercent(String
fileCacheQueryLimitPercentStr) {
+ int fileCacheQueryLimitPct =
Integer.valueOf(fileCacheQueryLimitPercentStr);
+ if (fileCacheQueryLimitPct < 1 || fileCacheQueryLimitPct >
Config.file_cache_query_limit_percent_soft) {
+ throw new InvalidParameterException(
+ String.format("file_cache_query_limit_percent should be
between 1 and %d",
+ Config.file_cache_query_limit_percent_soft));
+ }
+ }
+
+ @VariableMgr.VarAttr(name = POLICY_FILE_CACHE_QUERY_LIMIT_PERCENT,
needForward = true,
Review Comment:
同上
--
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]