From 30fa2e6eb945312724099e0521587898ecc1f0ab Mon Sep 17 00:00:00 2001 From: yibin Date: Fri, 24 Nov 2023 11:10:44 +0800 Subject: [PATCH 1/3] Add some explanation Signed-off-by: yibin --- tiflash/tune-tiflash-performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiflash/tune-tiflash-performance.md b/tiflash/tune-tiflash-performance.md index 9af8b62becea..51ecc349e93c 100644 --- a/tiflash/tune-tiflash-performance.md +++ b/tiflash/tune-tiflash-performance.md @@ -304,7 +304,7 @@ mysql> explain analyze select max(l_shipdate), max(l_commitdate), max(l_receiptd set @@tidb_max_tiflash_threads = 20; ``` -在以下示例中,`tidb_max_tiflash_threads` 设置前,所有 TiFlash 的算子的执行线程数为 24。`tidb_max_tiflash_threads` 设置后,所有 TiFlash 的算子的执行线程数为 60。 +在以下示例中,`tidb_max_tiflash_threads` 设置前,request 执行的并发度是 8,集群总共有三个节点,所以所有 TiFlash 的算子的执行线程数为 24。`tidb_max_tiflash_threads` 设置后,所有 TiFlash 的算子的执行线程数为 60。 `tidb_max_tiflash_threads` 设置前: From 27832165dd5f220f480f409baf293995e96df1b5 Mon Sep 17 00:00:00 2001 From: yibin Date: Fri, 24 Nov 2023 11:29:08 +0800 Subject: [PATCH 2/3] Update tiflash/tune-tiflash-performance.md Co-authored-by: xzhangxian1008 --- tiflash/tune-tiflash-performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiflash/tune-tiflash-performance.md b/tiflash/tune-tiflash-performance.md index 51ecc349e93c..b3241aa46d2c 100644 --- a/tiflash/tune-tiflash-performance.md +++ b/tiflash/tune-tiflash-performance.md @@ -304,7 +304,7 @@ mysql> explain analyze select max(l_shipdate), max(l_commitdate), max(l_receiptd set @@tidb_max_tiflash_threads = 20; ``` -在以下示例中,`tidb_max_tiflash_threads` 设置前,request 执行的并发度是 8,集群总共有三个节点,所以所有 TiFlash 的算子的执行线程数为 24。`tidb_max_tiflash_threads` 设置后,所有 TiFlash 的算子的执行线程数为 60。 +在以下示例中,`tidb_max_tiflash_threads` 设置前,request 在单个 TiFlash 实例中的执行线程数是 8,集群总共有三个实例,所以算子在所有 TiFlash 实例中的执行线程总数为 24。`tidb_max_tiflash_threads` 设置后,算子在所有 TiFlash 实例中的执行线程总数为 60。 `tidb_max_tiflash_threads` 设置前: From 6b3f66bb94865de6666c9c7172cfc4609e321367 Mon Sep 17 00:00:00 2001 From: yibin Date: Fri, 24 Nov 2023 14:39:03 +0800 Subject: [PATCH 3/3] Update tiflash/tune-tiflash-performance.md Co-authored-by: Grace Cai --- tiflash/tune-tiflash-performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiflash/tune-tiflash-performance.md b/tiflash/tune-tiflash-performance.md index b3241aa46d2c..b041bac8bb88 100644 --- a/tiflash/tune-tiflash-performance.md +++ b/tiflash/tune-tiflash-performance.md @@ -304,7 +304,7 @@ mysql> explain analyze select max(l_shipdate), max(l_commitdate), max(l_receiptd set @@tidb_max_tiflash_threads = 20; ``` -在以下示例中,`tidb_max_tiflash_threads` 设置前,request 在单个 TiFlash 实例中的执行线程数是 8,集群总共有三个实例,所以算子在所有 TiFlash 实例中的执行线程总数为 24。`tidb_max_tiflash_threads` 设置后,算子在所有 TiFlash 实例中的执行线程总数为 60。 +在以下示例中,设置 `tidb_max_tiflash_threads` 前,单个 TiFlash 实例的 request 执行的并发度为 8 个线程。该集群一共有 3 个 TiFlash 实例,因此所有 TiFlash 实例上的 request 执行的线程总数是 24。当将 `tidb_max_tiflash_threads` 设置为 `20` 后,所有 TiFlash 实例上的 request 执行的线程总数是 60。 `tidb_max_tiflash_threads` 设置前: