Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
[2.0.4] dmctl: support read master addr from env (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 authored and ti-chi-bot committed Jun 21, 2021
1 parent 4ad8cb5 commit da49a18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions en/dmctl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,17 @@ The command mode differs from the interactive mode in that you need to append th
> **Note:**
>
> + A dmctl command must be followed by only one task operation.
> + Starting from v2.0.4, DM supports reading the `-master-addr` parameter from the environment variable `DM_MASTER_ADDR`.
{{< copyable "shell-regular" >}}

```bash
./dmctl --master-addr 172.16.30.14:8261 start-task task.yaml
./dmctl --master-addr 172.16.30.14:8261 stop-task task
./dmctl --master-addr 172.16.30.14:8261 query-status

export DM_MASTER_ADD="172.16.30.14:8261"
./dmctl query-status
```

```
Expand Down
4 changes: 4 additions & 0 deletions zh/dmctl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,17 @@ Use "dmctl [command] --help" for more information about a command.
> **注意:**
>
> + 一条 dmctl 命令只能跟一个任务操作
> + 从 v2.0.4 版本开始,支持从环境变量 (DM_MASTER_ADDR) 里读取 `-master-addr` 参数
{{< copyable "shell-regular" >}}

```bash
./dmctl --master-addr 172.16.30.14:8261 start-task task.yaml
./dmctl --master-addr 172.16.30.14:8261 stop-task task
./dmctl --master-addr 172.16.30.14:8261 query-status

export DM_MASTER_ADD="172.16.30.14:8261"
./dmctl query-status
```

```
Expand Down

0 comments on commit da49a18

Please sign in to comment.