Skip to content

op-guide: Add document for deploying TiDB with docker#1

Merged
shenli merged 8 commits into
masterfrom
shenli/docker
Jul 29, 2016
Merged

op-guide: Add document for deploying TiDB with docker#1
shenli merged 8 commits into
masterfrom
shenli/docker

Conversation

@shenli
Copy link
Copy Markdown
Member

@shenli shenli commented Jul 26, 2016

Comment thread op-guide/docker.md Outdated
## Docker 安装和环境准备

#### 安装 Docker
使用 Docker 可以非常快速搭建起一套 TiDB 环境。Docker 可以方便地在 Linux / Mac OS X / Windows 环境上安装,安装过程可参考 Docker 官网 https://docs.docker.com/linux/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we refer url only to https://docs.docker.com?

@qiuyesuifeng
Copy link
Copy Markdown
Member

LGTM

@shenli
Copy link
Copy Markdown
Member Author

shenli commented Jul 26, 2016

@siddontang PTAL

Comment thread op-guide/docker.md Outdated
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个命令跟上面的命令是重复的。It's my fault. 我当时看这个文档的时候自己写上的,我马上去源文档把这个删了

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I will delete it.

@shenli
Copy link
Copy Markdown
Member Author

shenli commented Jul 29, 2016

@qiuyesuifeng @iamxy @siddontang PTAL

Comment thread op-guide/docker.md Outdated
#### 准备环境
完整的 TiDB 运行需要三个组件,TiDB, TiKV 和 PD。
* tidb-server 是 TiDB 的执行进程,负责客户端的接入,对用户的 SQL 进行解析、优化和执行,分解成下层的 KV 操作,并将执行结果进行聚合返回给客户端。TiDB 对外兼容 MySQL 协议,可以直接使用 MySQL Client 进行测试
* tikv-server,作为 TiDB 的分布式 KV 存储引擎,可以在网络互通的多机环境部署,使用 Raft 协议实现强一致性的数据复制,因此推荐设置 Region 的最大复本数(max-peer-count)为奇数,当多数派节点存活时 TiKV 保持可用状态
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we have removed max-peer-count in flag
need re-add? @qiuyesuifeng

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end of 。

@shenli
Copy link
Copy Markdown
Member Author

shenli commented Jul 29, 2016

PTAL @qiuyesuifeng @siddontang

Comment thread op-guide/docker.md Outdated
#### 准备环境
完整的 TiDB 运行需要三个组件,TiDB, TiKV 和 PD。
* tidb-server 是 TiDB 的执行进程,负责客户端的接入,对用户的 SQL 进行解析、优化和执行,分解成下层的 KV 操作,并将执行结果进行聚合返回给客户端。TiDB 对外兼容 MySQL 协议,可以直接使用 MySQL Client 进行测试。
* tikv-server,作为 TiDB 的分布式 KV 存储引擎,可以在网络互通的多机环境部署,使用 Raft 协议实现强一致性的数据复制,因此推荐设置 Region 的最大复本数(max-peer-count)为奇数,当多数派节点存活时 TiKV 保持可用状态。
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, we don't have max-peer-count here now.
@qiuyesuifeng

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siddontang
Copy link
Copy Markdown
Member

LGTM

Comment thread op-guide/docker.md
# 机器1
docker run -d --name tikv1 \
-p 20160:20160 \
-v /etc/localtime:/etc/localtime:ro \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qiuyesuifeng
Copy link
Copy Markdown
Member

LGTM

@shenli shenli merged commit 32fc8ce into master Jul 29, 2016
@shenli shenli deleted the shenli/docker branch July 29, 2016 14:50
tshqin added a commit that referenced this pull request Dec 7, 2017
ti-chi-bot pushed a commit to ti-chi-bot/docs-cn that referenced this pull request Aug 31, 2023
)

Signed-off-by: Aolin <aolin.zhang@pingcap.com>
ti-chi-bot pushed a commit to ti-chi-bot/docs-cn that referenced this pull request Aug 31, 2023
)

Signed-off-by: Aolin <aolin.zhang@pingcap.com>
ti-chi-bot pushed a commit to ti-chi-bot/docs-cn that referenced this pull request Aug 31, 2023
)

Signed-off-by: Aolin <aolin.zhang@pingcap.com>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants