op-guide: Add document for deploying TiDB with docker#1
Merged
Conversation
| ## Docker 安装和环境准备 | ||
|
|
||
| #### 安装 Docker | ||
| 使用 Docker 可以非常快速搭建起一套 TiDB 环境。Docker 可以方便地在 Linux / Mac OS X / Windows 环境上安装,安装过程可参考 Docker 官网 https://docs.docker.com/linux/ |
Member
There was a problem hiding this comment.
Should we refer url only to https://docs.docker.com?
Member
|
LGTM |
Member
Author
|
@siddontang PTAL |
| pingcap/tidb:latest \ | ||
| -L info --path /tmp/tidb | ||
|
|
||
| docker run -d --name tidb-server -v /etc/localtime:/etc/localtime:ro -p 4000:4000 -p 10080:10080 pingcap/tidb:latest -L info --path /tmp/tidb |
Contributor
There was a problem hiding this comment.
这个命令跟上面的命令是重复的。It's my fault. 我当时看这个文档的时候自己写上的,我马上去源文档把这个删了
op-guide: update docker.
Member
Author
| #### 准备环境 | ||
| 完整的 TiDB 运行需要三个组件,TiDB, TiKV 和 PD。 | ||
| * tidb-server 是 TiDB 的执行进程,负责客户端的接入,对用户的 SQL 进行解析、优化和执行,分解成下层的 KV 操作,并将执行结果进行聚合返回给客户端。TiDB 对外兼容 MySQL 协议,可以直接使用 MySQL Client 进行测试 | ||
| * tikv-server,作为 TiDB 的分布式 KV 存储引擎,可以在网络互通的多机环境部署,使用 Raft 协议实现强一致性的数据复制,因此推荐设置 Region 的最大复本数(max-peer-count)为奇数,当多数派节点存活时 TiKV 保持可用状态 |
Member
There was a problem hiding this comment.
Now we have removed max-peer-count in flag
need re-add? @qiuyesuifeng
Member
Author
|
PTAL @qiuyesuifeng @siddontang |
| #### 准备环境 | ||
| 完整的 TiDB 运行需要三个组件,TiDB, TiKV 和 PD。 | ||
| * tidb-server 是 TiDB 的执行进程,负责客户端的接入,对用户的 SQL 进行解析、优化和执行,分解成下层的 KV 操作,并将执行结果进行聚合返回给客户端。TiDB 对外兼容 MySQL 协议,可以直接使用 MySQL Client 进行测试。 | ||
| * tikv-server,作为 TiDB 的分布式 KV 存储引擎,可以在网络互通的多机环境部署,使用 Raft 协议实现强一致性的数据复制,因此推荐设置 Region 的最大复本数(max-peer-count)为奇数,当多数派节点存活时 TiKV 保持可用状态。 |
Member
There was a problem hiding this comment.
same here, we don't have max-peer-count here now.
@qiuyesuifeng
Member
|
LGTM |
| # 机器1 | ||
| docker run -d --name tikv1 \ | ||
| -p 20160:20160 \ | ||
| -v /etc/localtime:/etc/localtime:ro \ |
Member
|
LGTM |
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/docs-cn
that referenced
this pull request
Jun 27, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@siddontang @iamxy @qiuyesuifeng PTAL