Skip to content

Commit 8052f3f

Browse files
TomShawnsre-bot
authored andcommitted
tiflash: add tiflash tuning document (pingcap#2190)
1 parent 1724eac commit 8052f3f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304
- [Scale TiFlash](/reference/tiflash/scale.md)
305305
- [Upgrade TiFlash Nodes](/reference/tiflash/upgrade.md)
306306
- [Configure TiFlash](/reference/tiflash/configuration.md)
307+
- [Tune TiFlash Performance](/reference/tiflash/tune-performance.md)
307308
+ TiDB Binlog
308309
- [Overview](/reference/tidb-binlog/overview.md)
309310
- [Deploy](/reference/tidb-binlog/deploy.md)

reference/tiflash/tune-performance.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Tune TiFlash Performance
3+
summary: Learn how to tune the performance of TiFlash.
4+
category: reference
5+
---
6+
7+
# Tune TiFlash Performance
8+
9+
This document introduces how to tune the performance of TiFlash, including planning machine resources and tuning TiDB parameters.
10+
11+
## Plan resources
12+
13+
If you want to save machine resources and have no requirement on isolation, you can use the method that combines the deployment of both TiKV and TiFlash. It is recommended that you save enough resources for TiKV and TiFlash respectively, and do not share disks.
14+
15+
## Tune TiDB parameters
16+
17+
1. For the TiDB node dedicated to OLAP/TiFlash, it is recommended that you increase the value of the [`tidb_distsql_scan_concurrency`](/reference/configuration/tidb-server/tidb-specific-variables.md#tidb_distsql_scan_concurrency) configuration item for this node to `80`:
18+
19+
{{< copyable "sql" >}}
20+
21+
```sql
22+
set @@tidb_distsql_scan_concurrency = 80;
23+
```
24+
25+
2. Enable the optimization for TiDB Operator such as the aggregate pushdown of `JOIN` or `UNION`:
26+
27+
{{< copyable "sql" >}}
28+
29+
```sql
30+
set @@tidb_opt_agg_push_down = 1;
31+
```

0 commit comments

Comments
 (0)