zhannngchen commented on code in PR #13495: URL: https://github.com/apache/doris/pull/13495#discussion_r1006681881
########## be/src/common/config.h: ########## @@ -253,59 +253,41 @@ CONF_Bool(enable_vectorized_compaction, "true"); // whether enable vectorized schema change/material-view/rollup task. CONF_Bool(enable_vectorized_alter_table, "true"); -// check the configuration of auto compaction in seconds when auto compaction disabled -CONF_mInt32(check_auto_compaction_interval_seconds, "5"); +// This config can be set to limit thread number in compaction thread pool. +CONF_mInt32(max_base_compaction_threads, "4"); +CONF_mInt32(max_cumu_compaction_threads, "10"); -CONF_mInt64(base_compaction_num_cumulative_deltas, "5"); -CONF_mDouble(base_cumulative_delta_ratio, "0.3"); -CONF_mInt64(base_compaction_interval_seconds_since_last_operation, "86400"); -CONF_mInt32(base_compaction_write_mbytes_per_sec, "5"); CONF_Bool(enable_base_compaction_idle_sched, "true"); - -// dup key not compaction big files -CONF_Bool(enable_dup_key_base_compaction_skip_big_file, "true"); +CONF_mInt64(base_compaction_min_rowset_num, "5"); +CONF_mDouble(base_compaction_min_data_ratio, "0.3"); CONF_mInt64(base_compaction_dup_key_max_file_size_mbytes, "1024"); -// In size_based policy, output rowset of cumulative compaction total disk size exceed this config size, +// output rowset of cumulative compaction total disk size exceed this config size, // this rowset will be given to base compaction, unit is m byte. -CONF_mInt64(cumulative_size_based_promotion_size_mbytes, "1024"); Review Comment: We can clean some useless configs, but we'd better not to change the config name for compatibility consideration? @morningman pls help to review this kind of change. -- 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