Skip to content

Commit

Permalink
Update tiup document (#4117)
Browse files Browse the repository at this point in the history
* Update tiup document

Signed-off-by: lucklove <gnu.crazier@gmail.com>

* Address comment

Signed-off-by: lucklove <gnu.crazier@gmail.com>

* Address comment

Signed-off-by: lucklove <gnu.crazier@gmail.com>

* Address comment

Signed-off-by: lucklove <gnu.crazier@gmail.com>

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
lucklove and TomShawn authored Aug 5, 2020
1 parent 92445a6 commit 1036838
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scale-tidb-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ pd_servers:
tiup cluster scale-out <cluster-name> scale-out.yaml
```

> **注意:**
>
> 此处假设当前执行命令的用户和新增的机器打通了互信,如果不满足已打通互信的条件,需要通过 `-p` 来输入新机器的密码,或通过 `-i` 指定私钥文件。
预期输出 Scaled cluster `<cluster-name>` out successfully 信息,表示扩容操作成功。

### 3. 检查集群状态
Expand Down Expand Up @@ -150,6 +154,10 @@ tiflash_servers:
tiup cluster scale-out <cluster-name> scale-out.yaml
```

> **注意:**
>
> 此处假设当前执行命令的用户和新增的机器打通了互信,如果不满足已打通互信的条件,需要通过 `-p` 来输入新机器的密码,或通过 `-i` 指定私钥文件。
### 3. 查看集群状态

{{< copyable "shell-regular" >}}
Expand Down Expand Up @@ -194,6 +202,10 @@ cdc_servers:
tiup cluster scale-out <cluster-name> scale-out.yaml
```

> **注意:**
>
> 此处假设当前执行命令的用户和新增的机器打通了互信,如果不满足已打通互信的条件,需要通过 `-p` 来输入新机器的密码,或通过 `-i` 指定私钥文件。
### 3. 查看集群状态

{{< copyable "shell-regular" >}}
Expand Down
5 changes: 5 additions & 0 deletions tiup/tiup-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ aliases: ['/docs-cn/dev/tiup/tiup-faq/']

TiUP 支持通过环境变量 TIUP_MIRRORS 指定镜像源,镜像源的地址可以是一个本地目录或 HTTP 服务器地址。如果用户的环境不能访问网络,可以建立自己的离线镜像源使用 TiUP。

如果在使用非官方镜像之后想要切回官方镜像可以采取以下任一措施:

- 将 TIUP_MIRRORS 变量设置成官方镜像的地址:`https://tiup-mirrors.pingcap.com`
- 先确保 TIUP_MIRRORS 变量没有设置,再使用执行 `tiup mirror set https://tiup-mirrors.pingcap.com` 命令。

## 如何将自己编写的组件放入 TiUP 镜像仓库?

TiUP 暂时不支持外部开发的组件,但是 TiUP Team 已经制定了 TiUP 组件开发规范,同时正在开发 tiup-publish 组件,完成 tiup-publish 组件后,开发者可以通过 `tiup publish <comp> <version>` 将自己开发的组件发布到 TiUP 的官方镜像仓库。
Expand Down

0 comments on commit 1036838

Please sign in to comment.