Skip to content

how-to/deploy: add TiFlash to TiUP deployment#2662

Merged
yikeke merged 26 commits into
pingcap:masterfrom
superlzs0476:deploy-tiflash
Apr 9, 2020
Merged

how-to/deploy: add TiFlash to TiUP deployment#2662
yikeke merged 26 commits into
pingcap:masterfrom
superlzs0476:deploy-tiflash

Conversation

@superlzs0476
Copy link
Copy Markdown
Contributor

@superlzs0476 superlzs0476 commented Apr 8, 2020

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v4.0 (TiDB 4.0 versions)
  • v3.1 (TiDB 3.1 versions)
  • v3.0 (TiDB 3.0 versions)
  • v2.1 (TiDB 2.1 versions)

If you select two or more versions from above, to trigger the bot to cherry-pick this PR to your desired release version branch(es), you must add corresponding labels such as needs-cherry-pick-4.0, needs-cherry-pick-3.1, needs-cherry-pick-3.0, and needs-cherry-pick-2.1.

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

@superlzs0476
Copy link
Copy Markdown
Contributor Author

@lilin90 @ilovesoup @cocoyi17 PTAL

@TomShawn TomShawn requested a review from yikeke April 9, 2020 02:22
@yikeke yikeke requested a review from ilovesoup April 9, 2020 02:47
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
> 无需手动创建 tidb 用户,TiUP cluster 组件会在部署主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。
> - 无需手动创建 tidb 用户,TiUP cluster 组件会在部署主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。
>
> - [部署 Tiflash](https://pingcap.com/docs-cn/dev/reference/tiflash/deploy/) 需要开启 `replication.enable-placement-rules` ,以开启 PD 的 [Placement Rules](https://pingcap.com/docs-cn/dev/how-to/configure/placement-rules/) 功能。
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.

同一个文档内部链接是不是用 /reference/tiflash/deploy 就可以了?

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.

是的,内链统一用相对链接哈,方便 cherry-pick: @superlzs0476

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

没明白,你来提一个 suggestion 我来点赞吧

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
- host: 10.0.1.3
tiflash_servers:
- host: 10.0.1.10
# data_dir: /data1/tiflash/data,/data2/tiflash/data
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.

其他组件的配置的注释好像都是从 https://github.com/pingcap-incubator/tiup-cluster/blob/master/topology.example.yaml 拷贝过来

tiflash是不是也可以拷贝过来?

 # ssh_port: 22
    # tcp_port: 9000
    # http_port: 8123
    # flash_service_port: 3930
    # flash_proxy_port: 20170
    # flash_proxy_status_port: 20292
    # metrics_port: 8234
    # deploy_dir: deploy/tiflash-9000
    # data_dir: deploy/tiflash-9000/data
    # log_dir: deploy/tiflash-9000/log
    # numa_node: "0,1"
    # # Config is used to overwrite the `server_configs.tiflash` values
    #  config:
    #    logger:
    #      level: "info"
    #  learner_config:
    #    log-level: "info"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

提供一般参数介绍吧,这么多参数,Tiflash 的部署文档里面都没有。

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
@yikeke yikeke added needs-cherry-pick-4.0 translation/doing This PR’s assignee is translating this PR. labels Apr 9, 2020
@yikeke yikeke self-assigned this Apr 9, 2020
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
superlzs0476 and others added 6 commits April 9, 2020 11:37
Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Copy link
Copy Markdown
Contributor

@yikeke yikeke left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
Copy link
Copy Markdown
Contributor

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
>
> - tiflash_servers 实例级别配置 `"-host"` 目前只支持 IP,不支持域名。
>
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#常见部署问题)。
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.

Suggested change
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#常见部署问题)
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#tiflash-参数)

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
>
> - tiflash_servers 实例级别配置 `"-host"` 目前只支持 ip,不支持域名。
>
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#常见部署问题)。
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.

Suggested change
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#常见部署问题)
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#tiflash-参数)

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
>
> - tiflash_servers 实例级别配置 `"-host"` 目前只支持 IP,不支持域名。
>
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#常见部署问题)。
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.

Suggested change
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#常见部署问题)
> - Tiflash 具体的参数配置介绍请见[常见部署问题 Tiflash 参数配置](#tiflash-参数)

Comment thread how-to/deploy/orchestrated/tiup.md Outdated
| 实例 | data_dir | 继承 global 配置 | 数据目录 |
| 实例 | log_dir | 继承 global 配置 | 日志目录 |


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.

Suggested change

Multiple blanks will fail the CI.

@yikeke yikeke merged commit 18d42b4 into pingcap:master Apr 9, 2020
sre-bot pushed a commit to sre-bot/docs-cn that referenced this pull request Apr 9, 2020
* add module of deploy topology configuration for Tiflash

* fix typo: tomestone -> tombstone

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Revert "fix typo: tomestone -> tombstone"

This reverts commit 0460005.

* Update how-to/deploy/orchestrated/tiup.md

* FIX CI

* add module of deploy topology configuration for Tiflash

* add module of deploy topology configuration for Tiflash

* refine format and content

Co-authored-by: yikeke <yikeke@pingcap.com>
Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Apr 9, 2020

cherry pick to release-4.0 in PR #2673

yikeke added a commit that referenced this pull request Apr 9, 2020
* add module of deploy topology configuration for Tiflash

* fix typo: tomestone -> tombstone

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Revert "fix typo: tomestone -> tombstone"

This reverts commit 0460005.

* Update how-to/deploy/orchestrated/tiup.md

* FIX CI

* add module of deploy topology configuration for Tiflash

* add module of deploy topology configuration for Tiflash

* refine format and content

Co-authored-by: yikeke <yikeke@pingcap.com>
Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>

Co-authored-by: lzs <43946384+superlzs0476@users.noreply.github.com>
Co-authored-by: yikeke <yikeke@pingcap.com>
Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
@lilin90 lilin90 changed the title How-to:/deploy/tiup.md for deploy tiflash how-to/deploy: add TiFlash to TiUP deployment Apr 9, 2020
@yikeke yikeke added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR’s assignee is translating this PR. labels Apr 9, 2020
@superlzs0476 superlzs0476 deleted the deploy-tiflash branch April 10, 2020 05:35
rleungx pushed a commit to rleungx/docs-cn that referenced this pull request May 22, 2020
* add module of deploy topology configuration for Tiflash

* fix typo: tomestone -> tombstone

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Liangliang Gu <marsishandsome@gmail.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Update how-to/deploy/orchestrated/tiup.md

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* Revert "fix typo: tomestone -> tombstone"

This reverts commit 0460005.

* Update how-to/deploy/orchestrated/tiup.md

* FIX CI

* add module of deploy topology configuration for Tiflash

* add module of deploy topology configuration for Tiflash

* refine format and content

Co-authored-by: yikeke <yikeke@pingcap.com>
Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants