You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/07/20 09:50:11 UTC

[doris] branch master updated: [opt](config) rename alter_inverted_index_worker_count to alter_index_worker_count, and add docs (#21985)

This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c31e826756 [opt](config) rename alter_inverted_index_worker_count to alter_index_worker_count, and add docs (#21985)
c31e826756 is described below

commit c31e82675697858c598dbf965d6ccfbc2ea0142e
Author: YueW <45...@users.noreply.github.com>
AuthorDate: Thu Jul 20 17:50:04 2023 +0800

    [opt](config) rename alter_inverted_index_worker_count to alter_index_worker_count, and add docs (#21985)
---
 be/src/agent/task_worker_pool.cpp                     | 2 +-
 be/src/common/config.cpp                              | 4 ++--
 be/src/common/config.h                                | 4 ++--
 docs/en/docs/admin-manual/config/be-config.md         | 5 +++++
 docs/en/docs/advanced/alter-table/schema-change.md    | 1 +
 docs/zh-CN/docs/admin-manual/config/be-config.md      | 5 +++++
 docs/zh-CN/docs/advanced/alter-table/schema-change.md | 2 ++
 7 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/be/src/agent/task_worker_pool.cpp b/be/src/agent/task_worker_pool.cpp
index 06d243d7d6..f40ff6ef4c 100644
--- a/be/src/agent/task_worker_pool.cpp
+++ b/be/src/agent/task_worker_pool.cpp
@@ -157,7 +157,7 @@ void TaskWorkerPool::start() {
     case TaskWorkerType::ALTER_TABLE:
         break;
     case TaskWorkerType::ALTER_INVERTED_INDEX:
-        _worker_count = config::alter_inverted_index_worker_count;
+        _worker_count = config::alter_index_worker_count;
         _cb = std::bind<void>(&TaskWorkerPool::_alter_inverted_index_worker_thread_callback, this);
         break;
     case TaskWorkerType::CLONE:
diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 7b1d0614bf..5c177e1d88 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -159,8 +159,8 @@ DEFINE_Int32(clear_transaction_task_worker_count, "1");
 DEFINE_Int32(delete_worker_count, "3");
 // the count of thread to alter table
 DEFINE_Int32(alter_tablet_worker_count, "3");
-// the count of thread to alter inverted index
-DEFINE_Int32(alter_inverted_index_worker_count, "3");
+// the count of thread to alter index
+DEFINE_Int32(alter_index_worker_count, "3");
 // the count of thread to clone
 DEFINE_Int32(clone_worker_count, "3");
 // the count of thread to clone
diff --git a/be/src/common/config.h b/be/src/common/config.h
index 086fb081c6..b572aecfe7 100644
--- a/be/src/common/config.h
+++ b/be/src/common/config.h
@@ -201,8 +201,8 @@ DECLARE_Int32(clear_transaction_task_worker_count);
 DECLARE_Int32(delete_worker_count);
 // the count of thread to alter table
 DECLARE_Int32(alter_tablet_worker_count);
-// the count of thread to alter inverted index
-DECLARE_Int32(alter_inverted_index_worker_count);
+// the count of thread to alter index
+DECLARE_Int32(alter_index_worker_count);
 // the count of thread to clone
 DECLARE_Int32(clone_worker_count);
 // the count of thread to clone
diff --git a/docs/en/docs/admin-manual/config/be-config.md b/docs/en/docs/admin-manual/config/be-config.md
index 6edaa7bb86..29bb732caa 100644
--- a/docs/en/docs/admin-manual/config/be-config.md
+++ b/docs/en/docs/admin-manual/config/be-config.md
@@ -1285,6 +1285,11 @@ BaseCompaction:546859:
 * Description: The number of threads making schema changes
 * Default value: 3
 
+### `alter_index_worker_count`
+
+* Description: The number of threads making index change
+* Default value: 3
+
 #### `ignore_load_tablet_failure`
 
 * Type: bool
diff --git a/docs/en/docs/advanced/alter-table/schema-change.md b/docs/en/docs/advanced/alter-table/schema-change.md
index b19b937c95..c2d5f61b89 100644
--- a/docs/en/docs/advanced/alter-table/schema-change.md
+++ b/docs/en/docs/advanced/alter-table/schema-change.md
@@ -280,6 +280,7 @@ SHOW ALTER TABLE COLUMN\G;
 * `alter_tablet_worker_count`: Number of threads used to perform historical data conversion on the BE side. The default is 3. If you want to speed up the Schema Change job, you can increase this parameter appropriately and restart the BE. But too many conversion threads can cause increased IO pressure and affect other operations. This thread is shared with the Rollup job.
 
 
+* `alter_index_worker_count`: Number of threads used to perform historical data build index on the BE size (note: only inverted index is supported now). The default is 3. If you want to speed up the Index Change job, you can increase this parameter appropriately and restart the BE. But too many threads can cause increased IO pressure and affect other operations.
 
 ## More Help
 
diff --git a/docs/zh-CN/docs/admin-manual/config/be-config.md b/docs/zh-CN/docs/admin-manual/config/be-config.md
index d41b2e4cbf..fd4ac79b74 100644
--- a/docs/zh-CN/docs/admin-manual/config/be-config.md
+++ b/docs/zh-CN/docs/admin-manual/config/be-config.md
@@ -1301,6 +1301,11 @@ BaseCompaction:546859:
 * 描述:进行schema change的线程数
 * 默认值:3
 
+### `alter_index_worker_count`
+
+* 描述:进行index change的线程数
+* 默认值:3
+
 #### `ignore_load_tablet_failure`
 
 * 类型:bool
diff --git a/docs/zh-CN/docs/advanced/alter-table/schema-change.md b/docs/zh-CN/docs/advanced/alter-table/schema-change.md
index e3bf908008..fa73ff9e52 100644
--- a/docs/zh-CN/docs/advanced/alter-table/schema-change.md
+++ b/docs/zh-CN/docs/advanced/alter-table/schema-change.md
@@ -289,6 +289,8 @@ SHOW ALTER TABLE COLUMN\G;
 
 - `alter_tablet_worker_count`:在 BE 端用于执行历史数据转换的线程数。默认为 3。如果希望加快 Schema Change 作业的速度,可以适当调大这个参数后重启 BE。但过多的转换线程可能会导致 IO 压力增加,影响其他操作。该线程和 Rollup 作业共用。
 
+- `alter_index_worker_count`:在 BE 端用于执行历史数据构建索引的线程数(注:当前只支持倒排索引)。默认为 3。如果希望加快 Index Change 作业的速度,可以适当调大这个参数后重启 BE。但过多的线程可能会导致 IO 压力增加,影响其他操作。
+
 ## 更多帮助
 
 关于Schema Change使用的更多详细语法及最佳实践,请参阅 [ALTER TABLE COLUMN](../../sql-manual/sql-reference/Data-Definition-Statements/Alter/ALTER-TABLE-COLUMN.md) 命令手册,你也可以在 MySql 客户端命令行下输入 `HELP ALTER TABLE COLUMN`  获取更多帮助信息。


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