Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.5: bump up the latest version to v6.5.11 #18647

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions br/backup-and-restore-use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ aliases: ['/zh/tidb/stable/backup-and-restore-use-cases-for-maintain/']

## 部署 TiDB 集群和 br 命令行工具

使用 PITR 功能,需要部署 v6.2.0 或以上版本的 TiDB 集群,并且更新 br 命令行工具到与 TiDB 集群相同的版本,本文假设使用的是 v6.5.10 版本。
使用 PITR 功能,需要部署 v6.2.0 或以上版本的 TiDB 集群,并且更新 br 命令行工具到与 TiDB 集群相同的版本,本文假设使用的是 v6.5.11 版本。

下表介绍了在 TiDB 集群中使用日志备份功能的推荐配置。

Expand All @@ -44,13 +44,13 @@ aliases: ['/zh/tidb/stable/backup-and-restore-use-cases-for-maintain/']
- 安装:

```shell
tiup install br:v6.5.10
tiup install br:v6.5.11
```

- 升级:

```shell
tiup update br:v6.5.10
tiup update br:v6.5.11
```

## 配置备份存储 (Amazon S3)
Expand Down
2 changes: 1 addition & 1 deletion dm/maintain-dm-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ tiup dmctl --master-addr master1:8261 operate-source create /tmp/source1.yml

此时可以通过命令行参数 `--native-ssh` 启用系统自带命令行:

- 部署集群:`tiup dm deploy <cluster-name> <version> <topo> --native-ssh`,其中 `<cluster-name>` 为集群名称,`<version>` 为 DM 集群版本(例如 `v6.5.10`),`<topo>` 为拓扑文件路径
- 部署集群:`tiup dm deploy <cluster-name> <version> <topo> --native-ssh`,其中 `<cluster-name>` 为集群名称,`<version>` 为 DM 集群版本(例如 `v6.5.11`),`<topo>` 为拓扑文件路径
- 启动集群:`tiup dm start <cluster-name> --native-ssh`
- 升级集群:`tiup dm upgrade ... --native-ssh`

Expand Down
2 changes: 1 addition & 1 deletion dm/quick-start-create-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ docker run --rm --name mysql-3307 -p 3307:3307 -e MYSQL_ALLOW_EMPTY_PASSWORD=tru
{{< copyable "shell-regular" >}}

```bash
wget https://download.pingcap.org/tidb-community-server-v6.5.10-linux-amd64.tar.gz
wget https://download.pingcap.org/tidb-community-server-v6.5.11-linux-amd64.tar.gz
tar -xzvf tidb-latest-linux-amd64.tar.gz
mv tidb-latest-linux-amd64/bin/tidb-server ./
./tidb-server -P 4000 --store mocktikv --log-file "./tidb.log" &
Expand Down
2 changes: 1 addition & 1 deletion pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PD Control 是 PD 的命令行工具,用于获取集群状态信息和调整

> **注意:**
>
> 下载链接中的 `{version}` 为 TiDB 的版本号。例如,amd64 架构的 `v6.5.10` 版本的下载链接为 `https://download.pingcap.org/tidb-community-server-v6.5.10-linux-amd64.tar.gz`。
> 下载链接中的 `{version}` 为 TiDB 的版本号。例如,amd64 架构的 `v6.5.11` 版本的下载链接为 `https://download.pingcap.org/tidb-community-server-v6.5.11-linux-amd64.tar.gz`。

### 源码编译

Expand Down
4 changes: 2 additions & 2 deletions production-deployment-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ alertmanager_servers:
{{< copyable "shell-regular" >}}

```shell
tiup cluster deploy tidb-test v6.5.10 ./topology.yaml --user root [-p] [-i /home/root/.ssh/gcp_rsa]
tiup cluster deploy tidb-test v6.5.11 ./topology.yaml --user root [-p] [-i /home/root/.ssh/gcp_rsa]
```

以上部署示例中:

- `tidb-test` 为部署的集群名称。
- `v6.5.10` 为部署的集群版本,可以通过执行 `tiup list tidb` 来查看 TiUP 支持的最新可用版本。
- `v6.5.11` 为部署的集群版本,可以通过执行 `tiup list tidb` 来查看 TiUP 支持的最新可用版本。
- 初始化配置文件为 `topology.yaml`。
- `--user root` 表示通过 root 用户登录到目标主机完成集群部署,该用户需要有 ssh 到目标机器的权限,并且在目标机器有 sudo 权限。也可以用其他有 ssh 和 sudo 权限的用户完成部署。
- [-i] 及 [-p] 为可选项,如果已经配置免密登录目标机,则不需填写。否则选择其一即可,[-i] 为可登录到目标机的 root 用户(或 --user 指定的其他用户)的私钥,也可使用 [-p] 交互式输入该用户的密码。
Expand Down
10 changes: 5 additions & 5 deletions quick-start-with-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ TiDB 是一个分布式系统。最基础的 TiDB 测试集群通常由 2 个 Ti
{{< copyable "shell-regular" >}}

```shell
tiup playground v6.5.10 --db 2 --pd 3 --kv 3
tiup playground v6.5.11 --db 2 --pd 3 --kv 3
```

上述命令会在本地下载并启动某个版本的集群(例如 v6.5.10)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:
上述命令会在本地下载并启动某个版本的集群(例如 v6.5.11)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:

```log
CLUSTER START SUCCESSFULLY, Enjoy it ^-^
Expand Down Expand Up @@ -197,10 +197,10 @@ TiDB 是一个分布式系统。最基础的 TiDB 测试集群通常由 2 个 Ti
{{< copyable "shell-regular" >}}

```shell
tiup playground v6.5.10 --db 2 --pd 3 --kv 3
tiup playground v6.5.11 --db 2 --pd 3 --kv 3
```

上述命令会在本地下载并启动某个版本的集群(例如 v6.5.10)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:
上述命令会在本地下载并启动某个版本的集群(例如 v6.5.11)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:

```log
CLUSTER START SUCCESSFULLY, Enjoy it ^-^
Expand Down Expand Up @@ -431,7 +431,7 @@ TiDB 是一个分布式系统。最基础的 TiDB 测试集群通常由 2 个 Ti
```

- 参数 `<cluster-name>` 表示设置集群名称
- 参数 `<version>` 表示设置集群版本,例如 `v6.5.10`。可以通过 `tiup list tidb` 命令来查看当前支持部署的 TiDB 版本
- 参数 `<version>` 表示设置集群版本,例如 `v6.5.11`。可以通过 `tiup list tidb` 命令来查看当前支持部署的 TiDB 版本
- 参数 `-p` 表示在连接目标机器时使用密码登录

> **注意:**
Expand Down
2 changes: 1 addition & 1 deletion scale-tidb-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Starting /root/.tiup/components/cluster/v1.11.3/cluster display <cluster-name>

TiDB Cluster: <cluster-name>

TiDB Version: v6.5.10
TiDB Version: v6.5.11

ID Role Host Ports Status Data Dir Deploy Dir

Expand Down
4 changes: 2 additions & 2 deletions ticdc/deploy-ticdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ tiup cluster upgrade <cluster-name> <version> --transfer-timeout 600

> **注意:**
>
> 命令中的 `<cluster-name>` 需要替换为集群名字,`<version>` 需要替换为目标版本号,例如 `v6.5.10`。
> 命令中的 `<cluster-name>` 需要替换为集群名字,`<version>` 需要替换为目标版本号,例如 `v6.5.11`。

### 升级的注意事项

Expand Down Expand Up @@ -152,7 +152,7 @@ tiup cluster upgrade <cluster-name> <version> --transfer-timeout 600

## 使用 TiCDC 命令行工具来查看集群状态

执行以下命令来查看 TiCDC 集群运行状态,注意需要将 `v<CLUSTER_VERSION>` 替换为 TiCDC 集群版本,例如 `v6.5.10`:
执行以下命令来查看 TiCDC 集群运行状态,注意需要将 `v<CLUSTER_VERSION>` 替换为 TiCDC 集群版本,例如 `v6.5.11`:

```shell
tiup ctl:v<CLUSTER_VERSION> cdc capture list --server=http://10.0.10.25:8300
Expand Down
2 changes: 1 addition & 1 deletion ticdc/ticdc-changefeed-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cdc cli changefeed create --server=http://10.0.10.25:8300 --sink-uri="mysql://ro
```shell
Create changefeed successfully!
ID: simple-replication-task
Info: {"upstream_id":7178706266519722477,"namespace":"default","id":"simple-replication-task","sink_uri":"mysql://root:[email protected]:4000/?time-zone=","create_time":"2024-06-20T15:05:46.679218+08:00","start_ts":438156275634929669,"engine":"unified","config":{"case_sensitive":false,"enable_old_value":true,"force_replicate":false,"ignore_ineligible_table":false,"check_gc_safe_point":true,"enable_sync_point":true,"bdr_mode":false,"sync_point_interval":30000000000,"sync_point_retention":3600000000000,"filter":{"rules":["test.*"],"event_filters":null},"mounter":{"worker_num":16},"sink":{"protocol":"","schema_registry":"","csv":{"delimiter":",","quote":"\"","null":"\\N","include_commit_ts":false},"column_selectors":null,"transaction_atomicity":"none","encoder_concurrency":16,"terminator":"\r\n","date_separator":"none","enable_partition_separator":false},"consistent":{"level":"none","max_log_size":64,"flush_interval":2000,"storage":""}},"state":"normal","creator_version":"v6.5.10"}
Info: {"upstream_id":7178706266519722477,"namespace":"default","id":"simple-replication-task","sink_uri":"mysql://root:[email protected]:4000/?time-zone=","create_time":"2024-09-20T15:05:46.679218+08:00","start_ts":438156275634929669,"engine":"unified","config":{"case_sensitive":false,"enable_old_value":true,"force_replicate":false,"ignore_ineligible_table":false,"check_gc_safe_point":true,"enable_sync_point":true,"bdr_mode":false,"sync_point_interval":30000000000,"sync_point_retention":3600000000000,"filter":{"rules":["test.*"],"event_filters":null},"mounter":{"worker_num":16},"sink":{"protocol":"","schema_registry":"","csv":{"delimiter":",","quote":"\"","null":"\\N","include_commit_ts":false},"column_selectors":null,"transaction_atomicity":"none","encoder_concurrency":16,"terminator":"\r\n","date_separator":"none","enable_partition_separator":false},"consistent":{"level":"none","max_log_size":64,"flush_interval":2000,"storage":""}},"state":"normal","creator_version":"v6.5.11"}
```

- `--changefeed-id`:同步任务的 ID,格式需要符合正则表达式 `^[a-zA-Z0-9]+(\-[a-zA-Z0-9]+)*$`。如果不指定该 ID,TiCDC 会自动生成一个 UUID(version 4 格式)作为 ID。
Expand Down
2 changes: 1 addition & 1 deletion ticdc/ticdc-changefeed-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Changefeed 是 TiCDC 中的单个同步任务。Changefeed 将一个 TiDB 集群

通过 TiCDC 提供的命令行工具 `cdc cli`,你可以管理 TiCDC 集群和同步任务,具体可参考[管理 TiCDC Changefeed](/ticdc/ticdc-manage-changefeed.md)。你也可以通过 HTTP 接口,即 TiCDC OpenAPI 来管理 TiCDC 集群和同步任务,详见 [TiCDC OpenAPI](/ticdc/ticdc-open-api.md)。

如果你使用的 TiCDC 是用 TiUP 部署的,可以通过 `tiup ctl:v<CLUSTER_VERSION> cdc` 来使用 TiCDC 命令行工具,注意需要将 `v<CLUSTER_VERSION>` 替换为 TiCDC 集群版本,例如 `v6.5.10`。你也可以通过直接执行 `cdc cli` 直接使用命令行工具。
如果你使用的 TiCDC 是用 TiUP 部署的,可以通过 `tiup ctl:v<CLUSTER_VERSION> cdc` 来使用 TiCDC 命令行工具,注意需要将 `v<CLUSTER_VERSION>` 替换为 TiCDC 集群版本,例如 `v6.5.11`。你也可以通过直接执行 `cdc cli` 直接使用命令行工具。
2 changes: 1 addition & 1 deletion ticdc/ticdc-manage-changefeed.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cdc cli changefeed create --server=http://10.0.10.25:8300 --sink-uri="mysql://ro
```shell
Create changefeed successfully!
ID: simple-replication-task
Info: {"upstream_id":7178706266519722477,"namespace":"default","id":"simple-replication-task","sink_uri":"mysql://root:[email protected]:4000/?time-zone=","create_time":"2024-06-20T15:05:46.679218+08:00","start_ts":438156275634929669,"engine":"unified","config":{"case_sensitive":false,"enable_old_value":true,"force_replicate":false,"ignore_ineligible_table":false,"check_gc_safe_point":true,"enable_sync_point":true,"bdr_mode":false,"sync_point_interval":30000000000,"sync_point_retention":3600000000000,"filter":{"rules":["test.*"],"event_filters":null},"mounter":{"worker_num":16},"sink":{"protocol":"","schema_registry":"","csv":{"delimiter":",","quote":"\"","null":"\\N","include_commit_ts":false},"column_selectors":null,"transaction_atomicity":"none","encoder_concurrency":16,"terminator":"\r\n","date_separator":"none","enable_partition_separator":false},"consistent":{"level":"none","max_log_size":64,"flush_interval":2000,"storage":""}},"state":"normal","creator_version":"v6.5.10"}
Info: {"upstream_id":7178706266519722477,"namespace":"default","id":"simple-replication-task","sink_uri":"mysql://root:[email protected]:4000/?time-zone=","create_time":"2024-09-20T15:05:46.679218+08:00","start_ts":438156275634929669,"engine":"unified","config":{"case_sensitive":false,"enable_old_value":true,"force_replicate":false,"ignore_ineligible_table":false,"check_gc_safe_point":true,"enable_sync_point":true,"bdr_mode":false,"sync_point_interval":30000000000,"sync_point_retention":3600000000000,"filter":{"rules":["test.*"],"event_filters":null},"mounter":{"worker_num":16},"sink":{"protocol":"","schema_registry":"","csv":{"delimiter":",","quote":"\"","null":"\\N","include_commit_ts":false},"column_selectors":null,"transaction_atomicity":"none","encoder_concurrency":16,"terminator":"\r\n","date_separator":"none","enable_partition_separator":false},"consistent":{"level":"none","max_log_size":64,"flush_interval":2000,"storage":""}},"state":"normal","creator_version":"v6.5.11"}
```

## 查询同步任务列表
Expand Down
2 changes: 1 addition & 1 deletion ticdc/ticdc-sink-to-cloud-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cdc cli changefeed create \
输出结果如下:

```shell
Info: {"upstream_id":7171388873935111376,"namespace":"default","id":"simple-replication-task","sink_uri":"s3://logbucket/storage_test?protocol=canal-json","create_time":"2024-06-20T18:52:05.566016967+08:00","start_ts":437706850431664129,"engine":"unified","config":{"case_sensitive":false,"enable_old_value":true,"force_replicate":false,"ignore_ineligible_table":false,"check_gc_safe_point":true,"enable_sync_point":false,"sync_point_interval":600000000000,"sync_point_retention":86400000000000,"filter":{"rules":["*.*"],"event_filters":null},"mounter":{"worker_num":16},"sink":{"protocol":"canal-json","schema_registry":"","csv":{"delimiter":",","quote":"\"","null":"\\N","include_commit_ts":false},"column_selectors":null,"transaction_atomicity":"none","encoder_concurrency":16,"terminator":"\r\n","date_separator":"none","enable_partition_separator":false},"consistent":{"level":"none","max_log_size":64,"flush_interval":2000,"storage":""}},"state":"normal","creator_version":"v6.5.10"}
Info: {"upstream_id":7171388873935111376,"namespace":"default","id":"simple-replication-task","sink_uri":"s3://logbucket/storage_test?protocol=canal-json","create_time":"2024-09-20T18:52:05.566016967+08:00","start_ts":437706850431664129,"engine":"unified","config":{"case_sensitive":false,"enable_old_value":true,"force_replicate":false,"ignore_ineligible_table":false,"check_gc_safe_point":true,"enable_sync_point":false,"sync_point_interval":600000000000,"sync_point_retention":86400000000000,"filter":{"rules":["*.*"],"event_filters":null},"mounter":{"worker_num":16},"sink":{"protocol":"canal-json","schema_registry":"","csv":{"delimiter":",","quote":"\"","null":"\\N","include_commit_ts":false},"column_selectors":null,"transaction_atomicity":"none","encoder_concurrency":16,"terminator":"\r\n","date_separator":"none","enable_partition_separator":false},"consistent":{"level":"none","max_log_size":64,"flush_interval":2000,"storage":""}},"state":"normal","creator_version":"v6.5.11"}
```

- `--server`:TiCDC 集群中任意一个 TiCDC 服务器的地址。
Expand Down
2 changes: 1 addition & 1 deletion tidb-binlog/get-started-with-tidb-binlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sudo yum install -y mariadb-server
{{< copyable "shell-regular" >}}

```bash
curl -LO https://download.pingcap.org/tidb-community-server-v6.5.10-linux-amd64.tar.gz | tar xzf - &&
curl -LO https://download.pingcap.org/tidb-community-server-v6.5.11-linux-amd64.tar.gz | tar xzf - &&
cd tidb-latest-linux-amd64
```

Expand Down
2 changes: 1 addition & 1 deletion tiflash/create-tiflash-replicas.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA = "<db_name>
tiup ctl:v<CLUSTER_VERSION> pd -u http://<PD_ADDRESS>:2379 store limit all engine tiflash 60 add-peer
```

> 上述命令中,需要将 `v<CLUSTER_VERSION>` 替换为该集群版本,例如 `v6.5.10`,`<PD_ADDRESS>:2379` 替换为任一 PD 节点的地址。替换后样例为:
> 上述命令中,需要将 `v<CLUSTER_VERSION>` 替换为该集群版本,例如 `v6.5.11`,`<PD_ADDRESS>:2379` 替换为任一 PD 节点的地址。替换后样例为:
>
> ```shell
> tiup ctl:v6.1.1 pd -u http://192.168.1.4:2379 store limit all engine tiflash 60 add-peer
Expand Down
Loading
Loading