EmmyMiao87 commented on a change in pull request #5703:
URL: https://github.com/apache/incubator-doris/pull/5703#discussion_r628110103



##########
File path: fe/fe-core/src/main/java/org/apache/doris/common/Config.java
##########
@@ -1367,4 +1367,12 @@
      */
     @ConfField
     public static int grpc_max_message_size_bytes = 1 * 1024 * 1024 * 1024; // 
1GB
+
+    /**
+     * Used to limit the maximum number of partitions that can be created when 
creating a dynamic partition table,
+     * to avoid creating too many partitions at one time.
+     * The number is determined by "start" and "end" in the dynamic partition 
parameters.
+     */
+    @ConfField(mutable = true, masterOnly = true)
+    public static int max_dynamic_partition_num = 500;

Review comment:
       新配置加个文档说明吧

##########
File path: docs/zh-CN/administrator-guide/dynamic-partition.md
##########
@@ -122,6 +122,12 @@ under the License.
 * `dynamic_partition.start_day_of_month`
 
     当 `time_unit` 为 `MONTH` 时,该参数用于指定每月的起始日期。取值为 1 到 28。其中 1 表示每月1号,28 
表示每月28号。默认为 1,即表示每月以1号位起始点。暂不支持以29、30、31号为起始日,以避免因闰年或闰月带来的歧义。
+
+* `dynamic_partition.create_history_partition`
+
+    默认为 false。当置为 true 时,Doris 会自动创建由 start 到 end 的所有分区。同时,FE 的参数 
`max_dynamic_partition_num` 会限制总分区数量,以避免一次性创建过多分区。

Review comment:
       如果 max_dynamic_partition_num 大于 end - start 则无法创建动态分区,并且报错xxx。描述一下




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to