Skip to content

Commit

Permalink
cherry pick #3847 to release-4.0 (#3854)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: JoyinQ <56883733+Joyinqin@users.noreply.github.com>
  • Loading branch information
ti-srebot and Joyinqin authored Sep 9, 2020
1 parent 4604a0b commit a28a734
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions production-offline-deployment-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,16 @@ After sending the package to the control machine of the target cluster, install

{{< copyable "shell-regular" >}}

```shell
```bash
tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz
sh tidb-community-server-${version}-linux-amd64/local_install.sh
source /home/tidb/.bash_profile
```

The `local_install.sh` script automatically executes the `tiup mirror set tidb-community-server-${version}-linux-amd64` command to set the current mirror address to `tidb-community-server-${version}-linux-amd64`.

To switch the mirror to another directory, you can manually execute the `tiup mirror set <mirror-dir>` command.

## Step 3: Mount the TiKV data disk

> **Note:**
Expand Down Expand Up @@ -236,13 +240,12 @@ alertmanager_servers:

## Step 5: Deploy the TiDB cluster

`/path/to/mirror` is the location of the offline mirror package that is output by the `local_install.sh` command:
Execute the following command to deploy the TiDB cluster:

{{< copyable "shell-regular" >}}

```shell
export TIUP_MIRRORS=/path/to/mirror &&
tiup cluster deploy tidb-test v4.0.0 topology.yaml --user tidb [-p] [-i /home/root/.ssh/gcp_rsa] &&
```bash
tiup cluster deploy tidb-test v4.0.0 topology.yaml --user tidb [-p] [-i /home/root/.ssh/gcp_rsa]
tiup cluster start tidb-test
```

Expand Down

0 comments on commit a28a734

Please sign in to comment.