You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "gavinchou (via GitHub)" <gi...@apache.org> on 2025/05/22 11:57:12 UTC

Re: [PR] [fix](auto bucket) Configurable parameters for partition size estimation and number of buckets in auto bucket [doris]

gavinchou commented on code in PR #50566:
URL: https://github.com/apache/doris/pull/50566#discussion_r2102379797


##########
fe/fe-core/src/main/java/org/apache/doris/common/util/AutoBucketUtils.java:
##########
@@ -92,12 +92,21 @@ private static int convertParitionSizeToBucketsNum(long partitionSize) {
         } else if (partitionSize <= SIZE_1GB) {
             return 2;
         } else {
-            return (int) ((partitionSize - 1) / SIZE_1GB + 1);
+            if (Config.autobucket_partition_size_per_bucket_gb <= 0) {
+                if (Config.isCloudMode()) {
+                    Config.autobucket_partition_size_per_bucket_gb = 5;

Review Comment:
   ```suggestion
                       Config.autobucket_partition_size_per_bucket_gb = 10;
   ```



-- 
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-unsubscribe@doris.apache.org

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


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