-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update overview.md #3166
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
Merged
Merged
Update overview.md #3166
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
51a3ece
Update overview.md
scsldb 955abf9
Merge branch 'docs-special-week' into docs-speical-week-overview
lilin90 a1216f1
Update key-features.md
scsldb ea4bd95
Update mysql-compatibility.md
scsldb 78d177b
Update mysql-compatibility.md
scsldb e8215d7
Update mysql-compatibility.md
scsldb 3359b90
Update mysql-compatibility.md
scsldb 8b9dee5
Update mysql-compatibility.md
scsldb 2348c6d
Update tidb-limitations.md
scsldb be34c99
Update tidb-limitations.md
scsldb 3bb6475
Update tidb-limitations.md
scsldb 0fed0c6
Update tidb-limitations.md
scsldb 60203ea
Update tidb-limitations.md
scsldb ea0e1de
Update tidb-limitations.md
scsldb 5878942
Update overview.md
scsldb 0f3941e
Update overview.md
scsldb 4c89b3b
Update key-features.md
scsldb 03a17a7
Update overview.md
scsldb 93c40e7
Update overview.md
scsldb 7d0d8ad
Update overview.md
scsldb 7828fbc
Update key-features.md
scsldb 4ba0ff3
Update mysql-compatibility.md
scsldb a7ca276
Update overview.md
scsldb 0ffb70b
some typos
meyu44 b300d30
Update key-features.md
scsldb a6061a3
Update overview.md
scsldb 9fc1abd
Update mysql-compatibility.md
scsldb 33d37d0
Update tidb-limitations.md
scsldb 9b85868
Update key-features.md
scsldb faee52a
Update key-features.md
scsldb 846a1d4
Update key-features.md
scsldb 68f5849
Update key-features.md
scsldb 3f58a0a
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb a69ec19
Create Sysbench.md
scsldb 6376433
Create TPC-C.md
scsldb e96d05e
Update TPC-C.md
scsldb cf6c493
Update Sysbench.md
scsldb 360b538
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb 1d8bc3a
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb 1ece486
Update Sysbench.md
scsldb 33caadf
Update TPC-C.md
scsldb 4ebc63e
Rename Sysbench.md to sysbench.md
scsldb 9a272fa
Rename TPC-C.md to benchmark-tpcc-v3vsv4.md
scsldb 0aaf061
Update and rename sysbench.md to benchmark-sysbench-v3vsv4.md
scsldb 8ec8592
Update benchmark-sysbench-v3vsv4.md
scsldb 1f5c8a4
Update benchmark-tpcc-v3vsv4.md
scsldb f42207e
Rename benchmark-sysbench-v3vsv4.md to benchmark/benchmark-sysbench-v…
scsldb a1ae287
Rename benchmark-tpcc-v3vsv4.md to benchmark/benchmark-tpcc-v3vsv4.md
scsldb d9026ac
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb d797e45
Update benchmark-sysbench-v3vsv4.md
scsldb 815689a
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb 10f93ec
Update benchmark-sysbench-v3vsv4.md
scsldb 95e766b
Update benchmark-sysbench-v3vsv4.md
scsldb a44e334
Update benchmark-tpcc-v3vsv4.md
scsldb 3f3d62c
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb 8d0f979
Update mysql-compatibility.md
scsldb fb4b008
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb 91c3194
benchmark: rename, fix format and update wording
lilin90 86e4527
Update overview.md
scsldb b256c8b
Update key-features.md
scsldb db186b7
Update v4.0-performance-benchmarking-with-tpcc.md
scsldb 48b1a91
Update v4.0-performance-benchmarking-with-tpcc.md
scsldb fa73878
Update v4.0-performance-benchmarking-with-tpcc.md
scsldb ed47834
Rename key-features.md to base-features.md
scsldb bba61a6
Update TOC.md
scsldb 59393b3
Rename base-features.md to basic-features.md
scsldb 870d4e8
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb 77f8b99
Merge branch 'docs-special-week' into docs-speical-week-overview
scsldb bce0c17
Update mysql-compatibility.md
scsldb 2558b2d
Update v4.0-performance-benchmarking-with-tpcc.md
scsldb 229afb3
Delete benchmark-tpcc-v3vsv4.md
scsldb aecb3f2
Update mysql-compatibility.md
scsldb 4b0e632
Add aliases for key features
lilin90 7b72c1e
Update benchmark/benchmark-sysbench-v4-vs-v3.md
lilin90 471562b
Update v4.0-performance-benchmarking-with-tpcc.md
scsldb 8c7ab5d
Update benchmark/v4.0-performance-benchmarking-with-tpcc.md
lilin90 23333e7
Update benchmark/v4.0-performance-benchmarking-with-tpcc.md
lilin90 49eb573
Update tidb-limitations.md
lilin90 423303b
Merge branch 'docs-special-week' into docs-speical-week-overview
sre-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| --- | ||
| title: TiDB 基本功能 | ||
| category: introduction | ||
| --- | ||
|
|
||
| # TiDB 基本功能 | ||
|
|
||
| 本文详细介绍 TiDB 具备的基本功能。 | ||
|
|
||
| ## 数据类型 | ||
|
|
||
| - 数值类型: BIT、BOOL|BOOLEAN、SMALLINT、MEDIUMINT、INT|INTEGER、BIGINT、FLOAT、DOUBLE、DECIMAL。 | ||
|
|
||
| - 日期和时间类型: DATE、TIME、DATETIME、TIMESTAMP、YEAR。 | ||
|
|
||
| - 字符串类型: CHAR、VARCHAR、TEXT、TINYTEXT、MEDIUMTEXT、LONGTEXT、BINARY、VARBINARY、BLOB、TINYBLOB、MEDIUMBLOB、LONGBLOB、ENUM、SET。 | ||
|
|
||
| - JSON 类型。 | ||
|
|
||
| ## 运算符 | ||
|
|
||
| - 算术运符、位运算符、比较运算符、逻辑运算符、日期和时间运算符等。 | ||
|
|
||
| ## 字符集及排序规则 | ||
|
|
||
| - 字符集:UTF8、UTF8MB4、BINARY、ASCII、LATIN1。 | ||
|
|
||
| - 排序规则:UTF8MB4_GENERAL_CI、UTF8MB4_GENERAL_BIN、UTF8_GENERAL_CI、UTF8_GENERAL_BIN、BINARY。 | ||
|
|
||
| ## 函数 | ||
|
|
||
| - 控制流函数、字符串函数、日期和时间函数、位函数、数据类型转换函数、数据加解密函数、压缩和解压函数、信息函数、JSON 函数、聚合函数、窗口函数、信息函数等。 | ||
|
|
||
| ## SQL 语句 | ||
|
|
||
| - 完全支持标准的 Data Definition Statements 语句,例如:CREATE、DROP、ALTER、RENAME、RUNCATE 等。 | ||
|
|
||
| - 完全支持标准的 Data Manipulation Statements 语名,例如:INSERT、REPLACE、SELECT、Subqueries、UPDATE、LOAD DATA 等。 | ||
|
|
||
| - 完全支持标准的 Transactional and Locking Statements 语名,例如:START TRANSACTION、COMMIT、ROLLBACK、SET TRANSACTION 等。 | ||
|
|
||
| - 完全支持标准的 Database Administration Statements 语名,例如:SHOW、SET 等。 | ||
|
|
||
| - 完全支持标准的 Utility Statements语句, 例如:DESCRIBE、EXPLAIN、USE 等。 | ||
|
|
||
| - 完全支持 SQL GROUP BY 和 ORDER BY 子语句。 | ||
|
|
||
| - 完全支持标准 SQL 语法的 LEFT OUTER JOIN 和 RIGHT OUTER JOIN。 | ||
|
|
||
| - 完全支持标准 SQL 要求的表和列别名。 | ||
|
|
||
| ## 分区表 | ||
|
|
||
| - 支持 Range 分区。 | ||
|
|
||
| - 支持 Hash 分区。 | ||
|
|
||
| ## 视图 | ||
|
|
||
| - 支持普通视图。 | ||
|
|
||
| ## 约束 | ||
|
|
||
| - 支持非空约束。 | ||
|
|
||
| - 支持主键约束。 | ||
|
|
||
| - 支持唯一约束。 | ||
|
|
||
| ## 安全 | ||
|
|
||
| - 支持基于 RBAC 的权限管理。 | ||
|
|
||
| - 支持密码管理。 | ||
|
|
||
| - 支持通信、数据加密。 | ||
|
|
||
| - 支持 IP 白名单。 | ||
|
|
||
| - 支持审记功能。 | ||
|
|
||
| ## 工具 | ||
|
|
||
| - 支持快速备份功能 | ||
|
|
||
| - 支持通过工具从 MySQL 迁移数据到 TiDB。 | ||
|
|
||
| - 支持通过工具部署、运维 TiDB。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| --- | ||
| title: TiDB Sysbench 性能对比测试报告 - v4.0 对比 v3.0 | ||
| category: benchmark | ||
| draft: true | ||
| --- | ||
|
|
||
| # TiDB Sysbench 性能对比测试报告 - v4.0 对比 v3.0 | ||
|
|
||
| ## 测试目的 | ||
|
|
||
| 测试对比 TiDB v4.0 和 v3.0 在 OLTP 场景下的性能。 | ||
|
|
||
| ## 测试环境 (AWS EC2) | ||
|
|
||
| ### 硬件配置 | ||
|
|
||
| | 服务类型 | EC2 类型 | 节点数 | | ||
| |:----------|:----------|:----------| | ||
| | PD | m5.xlarge | 3 | | ||
| | TiKV | i3.4xlarge| 3 | | ||
| | TiDB | c5.4xlarge| 3 | | ||
| | Sysbench | m5.4xlarge| 1 | | ||
|
|
||
| ### 软件版本 | ||
|
|
||
| | 服务类型 | 软件版本 | ||
| |:----------|:-----------| | ||
| | PD | 3.0、4.0 | | ||
| | TiDB | 3.0、4.0 | | ||
| | TiKV | 3.0、4.0 | | ||
| | Sysbench | 1.0.20 | | ||
|
|
||
| ### 参数配置 | ||
|
|
||
| #### TiDB 3.0 参数配置 | ||
|
|
||
| - log.level: “error” | ||
| - performance.max-procs: 20 | ||
| - prepared-plan-cache.enabled: true | ||
| - tikv-client.max-batch-wait-time: 2000000 | ||
|
|
||
| #### TiKV 3.0 参数配置 | ||
|
|
||
| - storage.scheduler-worker-pool-size: 5 | ||
| - raftstore.store-pool-size: 3 | ||
| - raftstore.apply-pool-size: 3 | ||
| - rocksdb.max-background-jobs: 3 | ||
| - raftdb.max-background-jobs: 3 | ||
| - raftdb.allow-concurrent-memtable-write: true | ||
| - server.grpc-concurrency: 6 | ||
| - readpool.storage.normal-concurrency: 10 | ||
| - readpool.coprocessor.normal-concurrency: 5 | ||
|
|
||
| #### TiDB 4.0 参数配置 | ||
|
|
||
| - log.level: “error” | ||
| - performance.max-procs: 20 | ||
| - prepared-plan-cache.enabled: true | ||
| - tikv-client.max-batch-wait-time: 2000000 | ||
|
|
||
| #### TiKV 4.0 参数配置 | ||
|
|
||
| - storage.scheduler-worker-pool-size: 5 | ||
| - raftstore.store-pool-size: 3 | ||
| - raftstore.apply-pool-size: 3 | ||
| - rocksdb.max-background-jobs: 3 | ||
| - raftdb.max-background-jobs: 3 | ||
| - raftdb.allow-concurrent-memtable-write: true | ||
| - server.request-batch-enable-cross-command: false | ||
| - server.grpc-concurrency: 6 | ||
| - readpool.unifiy-read-pool: true | ||
| - readpool.unified.min-thread-count: 5 | ||
| - readpool.unified.max-thread-count: 20 | ||
| - readpool.storage.normal-concurrency: 10 | ||
| - pessimistic-txn.pipelined: true | ||
|
|
||
| #### 全局变量 | ||
|
|
||
| - set global tidb_hashagg_final_concurrency=1; | ||
| - set global tidb_hashagg_partial_concurrency=1; | ||
| - set global tidb_disable_txn_auto_retry=0; | ||
|
|
||
| ## 测试方案 | ||
|
|
||
| - 通过 TiUP 部署 TiDB v4.0 和 v3.0。 | ||
| - 通过 Sysbench 导入 16 张表,每张表数据 1000 万数据。 | ||
| - 分别对每个表执行 `analyze table` 命令。 | ||
| - 备份数据用于不同并发测试前进行恢复以保证每次数据一致。 | ||
| - 启动 Sysbench 客户端,测试 point_select, read_write,update_index, update_non_index,通过 aws nlb 向 TIDB 加压,单次预热 1 分钟,测试 5 分钟。 | ||
| - 每轮完成后停止集群,使用之前的备份的数据覆盖,再启动集群。 | ||
|
|
||
| ### 准备数据命令 | ||
|
|
||
| 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 | ||
|
|
||
| ### 执行测试命令 | ||
|
|
||
| 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 | ||
|
|
||
| ## 测试结果 | ||
|
|
||
| ### Point Select | ||
|
|
||
| TODO | ||
| <!-- TODO  --> | ||
|
|
||
| ### Update Non-index | ||
|
|
||
| TODO | ||
| <!-- TODO --> | ||
|
|
||
| ### Update Index | ||
|
|
||
| TODO | ||
| <!-- TODO --> | ||
|
|
||
| ### Read Write | ||
|
|
||
| TODO | ||
| <!-- --> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.