Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add two HTAP documents (#6206) #6321

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
8fe89ce
Remove all aliases from release-5.1 (#5818)
TomShawn Jun 22, 2021
ff81e85
add docs for enforce mpp (#5811) (#5819)
ti-chi-bot Jun 22, 2021
ed00c06
Update tidb-configuration-file.md (#5070) (#5821)
ti-chi-bot Jun 22, 2021
b7263ce
Add Lock View documents (#5798) (#5822)
ti-chi-bot Jun 22, 2021
92ffdf7
Fix typos (#5827) (#5828)
ti-chi-bot Jun 23, 2021
a9838d9
add document about stale read transaction (#5809) (#5829)
ti-chi-bot Jun 23, 2021
10e91bf
Delete docker deployment docs (#5830) (#5832)
ti-chi-bot Jun 23, 2021
41af2b5
Fix ebnf display (#5833) (#5834)
ti-chi-bot Jun 24, 2021
a966936
tidb-configuration-file: add graceful-wait-before-shutdown (#5825) (#…
ti-chi-bot Jun 24, 2021
57be14d
lightning: fix a lightning config bug (#5820) (#5837)
ti-chi-bot Jun 24, 2021
55f61ac
change docs configs to release-5.1 (#5817)
TomShawn Jun 24, 2021
3f5cb7f
Update content about upgrade (#5813) (#5841)
ti-chi-bot Jun 24, 2021
0ccfa07
add v510 benchmark doc (#5842) (#5845)
ti-chi-bot Jun 24, 2021
fcd26c2
system variables: add tidb_analyze_version (#5824) (#5846)
ti-chi-bot Jun 24, 2021
4642cd0
Add note about stale read (#5843) (#5850)
ti-chi-bot Jun 24, 2021
cca3435
Add v5.1 mpp tpch test report (#5844) (#5851)
ti-chi-bot Jun 24, 2021
f58f3ea
Bump version for v5.1.0 (#5849) (#5852)
ti-chi-bot Jun 24, 2021
670fe11
Add the release note for TiDB v5.1 (#5840) (#5853)
ti-chi-bot Jun 24, 2021
695e8ab
Update v5.1 release notes for lint issues (#5854) (#5855)
ti-chi-bot Jun 24, 2021
af53b3e
Fix the display issues of two lists (#5857) (#5858)
ti-chi-bot Jun 24, 2021
c601037
Update TOC.md (#5862)
qiancai Jun 24, 2021
74861a1
Add a missing sentence in 5.1 rn (#5863) (#5864)
ti-chi-bot Jun 25, 2021
247b380
Overhauling TiKV RocksDB configuration file (#5746) (#5873)
ti-chi-bot Jun 28, 2021
14815c5
Not support to set Tombstone (#5878) (#5885)
ti-chi-bot Jun 29, 2021
98811bf
Update tiup-bench.md (#5880) (#5883)
ti-chi-bot Jun 29, 2021
a9c84a2
tidb-functions: extend tidb_decode_key docs (#5877) (#5887)
ti-chi-bot Jun 29, 2021
fb04272
*: upadate roadmap (#5888) (#5889)
ti-chi-bot Jun 29, 2021
b718358
system-variables: add datadir and license (#5761) (#5890)
ti-chi-bot Jun 29, 2021
af1cf83
Add v5.1.0 / release-5.1 where it is missing (#5893) (#5902)
ti-chi-bot Jul 1, 2021
9fb760c
Clarify tidb lightning backend description (#5904) (#5907)
ti-chi-bot Jul 1, 2021
f5baca7
system-variables: Add charset documentation (#5867) (#5909)
ti-chi-bot Jul 1, 2021
0849f75
fix partition table doc error (#5903) (#5912)
ti-chi-bot Jul 1, 2021
7a7da4d
releases: add 5.0.3 release notes (#5874) (#5917)
ti-chi-bot Jul 2, 2021
30e06c6
Add workaround about using Stale Read with TiFlash (#5875) (#5922)
ti-chi-bot Jul 5, 2021
0cc435a
Fix ticdc canal-json related doc (#5774) (#5925)
ti-chi-bot Jul 5, 2021
4e7dad5
release-5.1.0: update CTE description (#5918) (#5923)
ti-chi-bot Jul 5, 2021
97335d6
remove some useless configurations (#5558) (#5926)
ti-chi-bot Jul 5, 2021
8b39e57
Remove a blank line that causes display failure (#5934) (#5935)
ti-chi-bot Jul 7, 2021
94b3436
configure-memory-usage: update default value (#5913) (#5939)
ti-chi-bot Jul 8, 2021
0cae595
quick-start-with-tidb: add a note to clarify the example ip (#5865) (…
ti-chi-bot Jul 8, 2021
2dfc3fa
TiKV configuration: defaultcf.titan config should not apply to other …
ti-chi-bot Jul 8, 2021
9b6059f
added config example for s3.region (#5919) (#5949)
ti-chi-bot Jul 8, 2021
48fc0a2
partitioned-table: adding the correction to incorrect examples (#5931…
ti-chi-bot Jul 8, 2021
98989b5
fix ctc doc (#5914) (#5953)
ti-chi-bot Jul 8, 2021
55e8034
*: make the scene of stale read clearer (#5932) (#5954)
ti-chi-bot Jul 8, 2021
b508e67
clustered-index.md: nonclusterd -> nonclustered (#5956) (#5958)
ti-chi-bot Jul 8, 2021
2b43641
Add the default value description for tidb_enforce_mpp (#5955) (#5961)
ti-chi-bot Jul 9, 2021
0f67d4b
Add a note to clarify the purpose of the quick start guide (#5876) (#…
ti-chi-bot Jul 12, 2021
a8c3b4f
fix-broken-external-links (#5971) (#5977)
ti-chi-bot Jul 13, 2021
68b2ee5
Fix some default configurations for RocksDB (#5969) (#5979)
ti-chi-bot Jul 13, 2021
afe2e92
Added a note about grpc-compression-type (#5960) (#5981)
ti-chi-bot Jul 13, 2021
2ef0ca7
Updated TiUP version (#5970) (#5983)
ti-chi-bot Jul 14, 2021
4472c8f
Remove the swappiness parameter (#5987) (#5990)
ti-chi-bot Jul 16, 2021
b196fe6
Change tidb_memory_usage_alarm_ratio scope to instance (#5988) (#5994)
ti-chi-bot Jul 16, 2021
c153c26
system-variables: update for consistency (#5826) (#5991)
ti-chi-bot Jul 16, 2021
2a0f15a
index page: updated the phase of TiDB Cloud from Beta to Public Previ…
ti-chi-bot Jul 23, 2021
595dcca
TiUP cluster: update data_dir (#6009) (#6019)
ti-chi-bot Jul 23, 2021
e67c799
update docs related to partition table dynamic mode (#5997) (#6025)
ti-chi-bot Jul 23, 2021
c8bc874
partitioning: Corrected partition management (#5498) (#6027)
ti-chi-bot Jul 23, 2021
852173f
TiDB binlog: update descriptions about commit ts and passoword (#5986…
ti-chi-bot Jul 27, 2021
f1f00b1
releases: add tidb 4.0.14 release notes (#5996) (#6039)
ti-chi-bot Jul 27, 2021
b0374ce
fix a typo for sync_diff_inspector (#6041) (#6043)
ti-chi-bot Jul 28, 2021
18ff150
Update dashboard FAQ (#5895) (#6051)
ti-chi-bot Jul 29, 2021
68eb8ec
correct document of using br backup and restore system tables (#6057)…
ti-chi-bot Jul 30, 2021
01e9b66
Add TiDB Dashboard session docs (#6058) (#6063)
ti-chi-bot Jul 30, 2021
2c75adc
Update the default value of tidb_stmt_summary_max_stmt_count (#6021) …
ti-chi-bot Jul 30, 2021
f0ff847
update br faq (#6060) (#6064)
ti-chi-bot Jul 30, 2021
4d27b79
releases: add TiDB 5.1.1 release notes (#6030) (#6065)
ti-chi-bot Jul 30, 2021
bc5e698
update stale read doc for ga (#6047) (#6052)
ti-chi-bot Jul 30, 2021
8f72414
grafana-overview-dashboard: update the monitoring item for CPS (#6066…
ti-chi-bot Jul 30, 2021
e049aa2
deploy-tidb-binlog: make the expression on deployment clearer (#6073)…
ti-chi-bot Aug 2, 2021
11d7adb
Add documentation on how to modify gcttl by tiup (#6071) (#6077)
ti-chi-bot Aug 2, 2021
e204267
remove useless variable (#6076) (#6078)
ti-chi-bot Aug 2, 2021
d919ebe
deleted roadmap.md (#6079) (#6082)
ti-chi-bot Aug 2, 2021
2eadade
TiDB Monitoring Metrics: remove a line (#6081) (#6083)
ti-chi-bot Aug 2, 2021
7c80eda
chore: lock plugin versions (#6089) (#6095)
ti-chi-bot Aug 4, 2021
878e03e
cdc: add compatibility notes for sort-dir (#6086) (#6096)
ti-chi-bot Aug 4, 2021
4854222
Add gc ttl (#6102) (#6104)
ti-chi-bot Aug 5, 2021
afa6b40
5.1.0 release notes: Fix link to telemetry docs (#6106) (#6107)
ti-chi-bot Aug 5, 2021
441738e
TiCDC: update a golang demo link (#6055) (#6114)
ti-chi-bot Aug 5, 2021
affee15
br/use-br-command-line-tool: supplement br note (#6000) (#6116)
ti-chi-bot Aug 5, 2021
f11a139
pr_template: Provides tips for cherry-pick (#6042) (#6122)
ti-chi-bot Aug 5, 2021
6141cd2
ticdc: add explicit_defaults_for_timestamp compatibility troubleshoot…
ti-chi-bot Aug 6, 2021
bf74697
TiFlash: remove outdated tune advise (#6133) (#6135)
ti-chi-bot Aug 10, 2021
fa2b427
tidb-scheduling: fix typo (#6140) (#6143)
ti-chi-bot Aug 11, 2021
431277a
tiup: fix dead links (#6153) (#6155)
ti-chi-bot Aug 12, 2021
ebdda11
chore: update pdf version tag (#6150)
YiniXu9506 Aug 13, 2021
bb85ae0
high-concurrency-best-practices: fix the support info of follower rea…
ti-chi-bot Aug 13, 2021
543d588
Fix broken link in error codes doc and support doc (#6196) (#6200)
ti-chi-bot Aug 20, 2021
0c57caa
docs: fix format for TiKV and PD configuration file template invalid.…
ti-chi-bot Aug 20, 2021
a280ce8
adopters: add zhihu case study (#6207) (#6213)
ti-chi-bot Aug 23, 2021
0e94de9
add notice about scaling in pd node (#6099) (#6221)
ti-chi-bot Aug 23, 2021
51e576a
adopters: remove 404 links (#6214) (#6225)
ti-chi-bot Aug 24, 2021
05e4084
update PR template for v5.2 (#6166) (#6241)
ti-chi-bot Aug 25, 2021
c9633c0
alert rules: update some descriptions (#6250) (#6256)
ti-chi-bot Aug 25, 2021
c3da29e
Fix image display error (#6169)
TomShawn Aug 25, 2021
0cf5b85
fix typo: relaod -> reload (#6235) (#6260)
ti-chi-bot Aug 25, 2021
02e2408
br: add restore to systables (#6004) (#6271)
ti-chi-bot Aug 26, 2021
df1c98a
Require process privilege for dumpling (#6187) (#6274)
ti-chi-bot Aug 26, 2021
56ff335
statement summary: update statement summary doc (#6084) (#6270)
ti-chi-bot Aug 26, 2021
278ada5
Add description about table name/alias specifying for read_from_stora…
ti-chi-bot Aug 26, 2021
6c4befb
TiKV configuration: remove redundant instructions (#6218) (#6288)
ti-chi-bot Aug 26, 2021
69fca38
alert rules: remove some descriptions (#6223) (#6292)
ti-chi-bot Aug 26, 2021
0358567
sql: improve kill's description (#6233) (#6306)
ti-chi-bot Aug 27, 2021
97713d9
system variables.md: add a warning message (#6298) (#6312)
ti-chi-bot Aug 27, 2021
f4687a3
tiup: add notice about importing cluster (#6108) (#6316)
ti-chi-bot Aug 27, 2021
1d2f500
chore: update PDF setting for 5.1 (#6307)
TomShawn Aug 27, 2021
6343c3e
add two HTAP documents
en-jin19 Aug 22, 2021
5b781fb
fix CI error
en-jin19 Aug 22, 2021
56b9e4c
fix CI error
en-jin19 Aug 22, 2021
8c81066
fix CI error
en-jin19 Aug 22, 2021
2a30b5f
fix CI errors
en-jin19 Aug 22, 2021
0249468
Update explore-htap.md
en-jin19 Aug 23, 2021
7ede85b
Update quick-start-with-htap.md
en-jin19 Aug 23, 2021
107b808
Update quick-start-with-htap.md
en-jin19 Aug 24, 2021
b2e4842
Update quick-start-with-htap.md
en-jin19 Aug 24, 2021
c92428c
Apply suggestions from code review
en-jin19 Aug 26, 2021
aa7eb2a
Apply suggestions from code review
en-jin19 Aug 26, 2021
06d34ea
fix CI error
en-jin19 Aug 26, 2021
949da58
Update explore-htap.md
qiancai Aug 26, 2021
2181340
Apply suggestions from code review
qiancai Aug 26, 2021
c84bb42
Apply suggestions from code review
en-jin19 Aug 27, 2021
5b40ad5
Apply suggestions from code review
en-jin19 Aug 27, 2021
d6046b4
Update quick-start-with-htap.md
qiancai Aug 27, 2021
aeff6a7
Update explore-htap.md
qiancai Aug 27, 2021
cb016e4
Update explore-htap.md
qiancai Aug 27, 2021
0c7cb0e
Update explore-htap.md
qiancai Aug 27, 2021
ae5235b
Merge branch 'release-5.1' into pr/6321
qiancai Aug 27, 2021
996aacc
Merge branch 'release-5.2' into pr/6321
qiancai Aug 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add v510 benchmark doc (#5842) (#5845)
  • Loading branch information
ti-chi-bot authored Jun 24, 2021
commit 0ccfa07525ff8ab905f1ca1c692320b6ed6ab4fc
4 changes: 2 additions & 2 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
+ [Basic Features](/basic-features.md)
+ [Experimental Features](/experimental-features.md)
+ Benchmarks
+ [v5.0 Sysbench Performance Test Report](/benchmark/benchmark-sysbench-v5-vs-v4.md)
+ [v5.0 TPC-C Performance Test Report](/benchmark/v5.0-performance-benchmarking-with-tpcc.md)
+ [v5.1 Sysbench Performance Test Report](/benchmark/benchmark-sysbench-v5.1.0-vs-v5.0.2.md)
+ [v5.1 TPC-C Performance Test Report](/benchmark/v5.1-performance-benchmarking-with-tpcc.md)
+ [v5.0 MPP mode TPC-H 100GB Performance Test](/benchmark/v5.0-performance-benchmarking-with-tpch.md)
+ [MySQL Compatibility](/mysql-compatibility.md)
+ [TiDB Limitations](/tidb-limitations.md)
Expand Down
185 changes: 185 additions & 0 deletions benchmark/benchmark-sysbench-v5.1.0-vs-v5.0.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
---
title: TiDB Sysbench Performance Test Report -- v5.1.0 vs. v5.0.2
---

# TiDB Sysbench Performance Test Report -- v5.1.0 vs. v5.0.2

## Test overview

This test aims at comparing the Sysbench performance of TiDB v5.1.0 and TiDB v5.0.2 in the Online Transactional Processing (OLTP) scenario. The results show that compared with v5.0.2, the Point Select performance of v5.1.0 is improved by 19.4%, and the performance of the Read Write and Update Index is slightly reduced.

## Test environment (AWS EC2)

### Hardware configuration

| Service type | EC2 type | Instance count |
|:----------|:----------|:----------|
| PD | m5.xlarge | 3 |
| TiKV | i3.4xlarge| 3 |
| TiDB | c5.4xlarge| 3 |
| Sysbench | c5.9xlarge| 1 |

### Software version

| Service type | Software version |
|:----------|:-----------|
| PD | v5.0.2 and v5.1.0 |
| TiDB | v5.0.2 and v5.1.0 |
| TiKV | v5.0.2 and v5.1.0 |
| Sysbench | 1.0.20 |

### Parameter configuration

TiDB v5.1.0 and TiDB v5.0.2 use the same configuration.

#### TiDB parameter configuration

{{< copyable "" >}}

```yaml
log.level: "error"
performance.max-procs: 20
prepared-plan-cache.enabled: true
tikv-client.max-batch-wait-time: 2000000
```

#### TiKV parameter configuration

{{< copyable "" >}}

```yaml
storage.scheduler-worker-pool-size: 5
raftstore.store-pool-size: 3
raftstore.apply-pool-size: 3
rocksdb.max-background-jobs: 8
raftdb.max-background-jobs: 4
raftdb.allow-concurrent-memtable-write: true
server.grpc-concurrency: 6
readpool.unified.min-thread-count: 5
readpool.unified.max-thread-count: 20
readpool.storage.normal-concurrency: 10
pessimistic-txn.pipelined: true
server.enable-request-batch: false
```

#### TiDB global variable configuration

{{< copyable "sql" >}}

```sql
set global tidb_hashagg_final_concurrency=1;
set global tidb_hashagg_partial_concurrency=1;
set global tidb_enable_async_commit = 1;
set global tidb_enable_1pc = 1;
set global tidb_guarantee_linearizability = 0;
set global tidb_enable_clustered_index = 1;
```

## Test plan

1. Deploy TiDB v5.1.0 and v5.0.2 using TiUP.
2. Use Sysbench to import 16 tables, each table with 10 million rows of data.
3. Execute the `analyze table` statement on each table.
4. Back up the data used for restore before different concurrency tests, which ensures data consistency for each test.
5. Start the Sysbench client to perform the `point_select`, `read_write`, `update_index`, and `update_non_index` tests. Perform stress tests on TiDB via HAProxy. The test takes 5 minutes.
6. After each type of test is completed, stop the cluster, overwrite the cluster with the backup data in step 4, and restart the cluster.

### Prepare test data

Execute the following command to prepare the test data:

{{< copyable "shell-regular" >}}

```bash
sysbench oltp_common \
--threads=16 \
--rand-type=uniform \
--db-driver=mysql \
--mysql-db=sbtest \
--mysql-host=$aws_nlb_host \
--mysql-port=$aws_nlb_port \
--mysql-user=root \
--mysql-password=password \
prepare --tables=16 --table-size=10000000
```

### Perform the test

Execute the following command to perform the test:

{{< copyable "shell-regular" >}}

```bash
sysbench $testname \
--threads=$threads \
--time=300 \
--report-interval=1 \
--rand-type=uniform \
--db-driver=mysql \
--mysql-db=sbtest \
--mysql-host=$aws_nlb_host \
--mysql-port=$aws_nlb_port \
run --tables=16 --table-size=10000000
```

## Test results

### Point Select performance

| Threads | v5.0.2 QPS | v5.0.2 95% latency (ms) | v5.1.0 QPS | v5.1.0 95% latency (ms) | QPS improvement |
|:----------|:----------|:----------|:----------|:----------|:----------|
|150|137732.27|1.86|158861.67|2|15.34%|
|300|201420.58|2.91|238038.44|2.71|18.18%|
|600|303631.52|3.49|428573.21|2.07|41.15%|
|900|383628.13|3.55|464863.22|3.89|21.18%|
|1200|391451.54|5.28|413656.74|13.46|5.67%|
|1500|410276.93|7.43|471418.78|10.65|14.90%|

Compared with v5.0.2, the Point Select performance of v5.1.0 is improved by 19.4%.

![Point Select](/media/sysbench_v510vsv502_point_select.png)

### Update Non-index performance

| Threads | v5.0.2 QPS | v5.0.2 95% latency (ms) | v5.1.0 QPS | v5.1.0 95% latency (ms) | QPS improvement |
|:----------|:----------|:----------|:----------|:----------|:----------|
|150|29248.2|7.17|29362.7|8.13|0.39%|
|300|40316.09|12.52|39651.52|13.7|-1.65%|
|600|51011.11|22.28|47047.9|27.66|-7.77%|
|900|58814.16|27.66|59331.84|28.67|0.88%|
|1200|65286.52|32.53|67745.39|31.37|3.77%|
|1500|68300.86|39.65|67899.17|44.17|-0.59%|

Compared with v5.0.2, the Update Non-index performance of v5.1.0 is reduced by 0.8%.

![Update Non-index](/media/sysbench_v510vsv502_update_non_index.png)

### Update Index performance

| Threads | v5.0.2 QPS | v5.0.2 95% latency (ms) | v5.1.0 QPS | v5.1.0 95% latency (ms) | QPS improvement |
|:----------|:----------|:----------|:----------|:----------|:----------|
|150|15066.54|14.73|14829.31|14.73|-1.57%|
|300|18535.92|24.83|17401.01|29.72|-6.12%|
|600|22862.73|41.1|21923.78|44.98|-4.11%|
|900|25286.74|57.87|24916.76|58.92|-1.46%|
|1200|27566.18|70.55|27800.62|69.29|0.85%|
|1500|28184.76|92.42|28679.72|86|1.76%|

Compared with v5.0.2, the Update Index performance of v5.1.0 is reduced by 1.8%.

![Update Index](/media/sysbench_v510vsv502_update_index.png)

### Read Write performance

| Threads | v5.0.2 QPS | v5.0.2 95% latency (ms) | v5.1.0 QPS | v5.1.0 95% latency (ms) | QPS improvement |
|:----------|:----------|:----------|:----------|:----------|:----------|
|150|66415.33|56.84|66591.49|57.87|0.27%|
|300|82488.39|97.55|81226.41|101.13|-1.53%|
|600|99195.36|173.58|97357.86|179.94|-1.85%|
|900|107382.76|253.35|101665.95|267.41|-5.32%|
|1200|112389.23|337.94|107426.41|350.33|-4.42%|
|1500|113548.73|450.77|109805.26|442.73|-3.30%|

Compared with v5.0.2, the Read Write performance of v5.1.0 is reduced by 2.7%.

![Read Write](/media/sysbench_v510vsv502_read_write.png)
92 changes: 92 additions & 0 deletions benchmark/v5.1-performance-benchmarking-with-tpcc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
title: TiDB TPC-C Performance Test Report -- v5.1.0 vs. v5.0.2
---

# TiDB TPC-C Performance Test Report -- v5.1.0 vs. v5.0.2

## Test overview

This test aims to compare the TPC-H performance of TiDB v5.1.0 and TiDB v5.0.2 in the online analytical processing (OLAP) scenario. The results show that compared with v5.0.2, the TPC-C performance of v5.1.0 is improved by 2.8%.

## Test environment (AWS EC2)

## Hardware configuration

| Service type | EC2 type | Instance count |
|:----------|:----------|:----------|
| PD | m5.xlarge | 3 |
| TiKV | i3.4xlarge| 3 |
| TiDB | c5.4xlarge| 3 |
| TPC-C | c5.9xlarge| 1 |

### Software version

| Service type | Software version |
|:----------|:-----------|
| PD | v5.0.2 and v5.1.0 |
| TiDB | v5.0.2 and v5.1.0 |
| TiKV | v5.0.2 and v5.1.0 |
| TiUP | 1.5.1 |

### Parameter configuration

TiDB v5.1.0 and TiDB v5.0.2 use the same configuration.

#### TiDB parameter configuration

{{< copyable "" >}}

```yaml
log.level: "error"
performance.max-procs: 20
prepared-plan-cache.enabled: true
tikv-client.max-batch-wait-time: 2000000
```

#### TiKV parameter configuration

{{< copyable "" >}}

```yaml
pessimistic-txn.pipelined: true
raftdb.allow-concurrent-memtable-write: true
raftdb.max-background-jobs: 4
raftstore.apply-max-batch-size: 2048
raftstore.apply-pool-size: 3
raftstore.store-max-batch-size: 2048
raftstore.store-pool-size: 3
readpool.storage.normal-concurrency: 10
readpool.unified.max-thread-count: 20
readpool.unified.min-thread-count: 5
rocksdb.max-background-jobs: 8
server.grpc-concurrency: 6
storage.scheduler-worker-pool-size: 20
server.enable-request-batch: false
```

#### TiDB global variable configuration

{{{< copyable "sql" >}}

```sql
set global tidb_hashagg_final_concurrency=1;
set global tidb_hashagg_partial_concurrency=1;
set global tidb_enable_async_commit = 1;
set global tidb_enable_1pc = 1;
set global tidb_guarantee_linearizability = 0;
set global tidb_enable_clustered_index = 1;
```

## Test plan

1. Deploy TiDB v5.1.0 and v5.0.2 using TiUP.
2. Create a database named `tpcc`: `create database tpcc;`.
3. Use BenchmarkSQL to import the TPC-C 5000 Warehouse data: `tiup bench tpcc prepare --warehouse 5000 --db tpcc -H 127.0.0.1 -p 4000`.
4. Execute the `tiup bench tpcc run -U root --db tpcc --host 127.0.0.1 --port 4000 --time 300s --warehouses 5000 --threads {{thread}}` command to perform stress tests on TiDB via HAProxy.
5. Extract the tpmC data of New Order from the result.

## Test result

Compared with v5.0.2, the TPC-C performance of v5.1.0 is **improved by 2.8%**.

![TPC-C](/media/tpcc_v510_vs_v502.png)
Binary file added media/sysbench_v510vsv502_point_select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sysbench_v510vsv502_read_write.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sysbench_v510vsv502_update_index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sysbench_v510vsv502_update_non_index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/tpcc_v510_vs_v502.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.