diff --git a/en/TOC.md b/en/TOC.md index 6d370b7015..da14714bf1 100644 --- a/en/TOC.md +++ b/en/TOC.md @@ -90,6 +90,7 @@ + [TiDB Operator Roadmap](roadmap.md) + Release Notes + v1.1 + - [1.1.7](releases/release-1.1.7.md) - [1.1.6](releases/release-1.1.6.md) - [1.1.5](releases/release-1.1.5.md) - [1.1.4](releases/release-1.1.4.md) diff --git a/en/releases/release-1.1.7.md b/en/releases/release-1.1.7.md new file mode 100644 index 0000000000..4abf8d2cb9 --- /dev/null +++ b/en/releases/release-1.1.7.md @@ -0,0 +1,42 @@ +--- +title: TiDB Operator 1.1.7 Release Notes +--- + +# TiDB Operator 1.1.7 Release Notes + +Release date: November 13, 2020 + +TiDB Operator version: 1.1.7 + +## Compatibility Changes + +- The behavior of `prometheus.spec.config.commandOptions` has changed. Any duplicated flags must be removed, or Prometheus will fail to start. ([#3390](https://github.com/pingcap/tidb-operator/pull/3390), [@mightyguava](https://github.com/mightyguava)) + + Flags that CANNOT be set are: + + - `--web.enable-admin-api` + - `--web.enable-lifecycle` + - `--config.file` + - `--storage.tsdb.path` + - `--storage.tsdb.retention` + +## New Features + +- Support `spec.toolImage` for the `Backup` and `Restore` CR with BR to define the image used to provide the BR binary executables. Defaults to `pingcap/br:${tikv_version}` ([#3471](https://github.com/pingcap/tidb-operator/pull/3471), [@namco1992](https://github.com/namco1992)) +- Add `spec.tidb.storageVolumes`, `spec.tikv.storageVolumes`, and `spec.pd.storageVolumes` to support mounting multiple PVs for TiDB, TiKV, and PD ([#3425](https://github.com/pingcap/tidb-operator/pull/3425) [#3444](https://github.com/pingcap/tidb-operator/pull/3444), [@mikechengwei](https://github.com/mikechengwei)) +- Add `spec.tidb.readinessProbe` config to support requesting `http://127.0.0.0:10080/status` for TiDB's readiness probe, TiDB version >= v4.0.9 required ([#3438](https://github.com/pingcap/tidb-operator/pull/3438), [@july2993](https://github.com/july2993)) +- Support PD leader transfer with advanced StatefulSet controller enabled ([#3395](https://github.com/pingcap/tidb-operator/pull/3395), [@tangwz](https://github.com/tangwz)) +- Support setting `OnDelete` update strategies for the StatefulSets via `spec.statefulSetUpdateStrategy` in the TidbCluster CR ([#3408](https://github.com/pingcap/tidb-operator/pull/3408), [@cvvz](https://github.com/cvvz)) +- Support HA scheduling when failover happens ([#3419](https://github.com/pingcap/tidb-operator/pull/3419), [@cvvz](https://github.com/cvvz)) +- Support smooth migration from TiDB clusters deployed using TiDB Ansible or TiUP or deployed in the same Kubernetes cluster to a new TiDB cluster ([#3226](https://github.com/pingcap/tidb-operator/pull/3226), [@cvvz](https://github.com/cvvz)) +- tidb-scheduler supports advanced StatefulSet ([#3388](https://github.com/pingcap/tidb-operator/pull/3388), [@cvvz](https://github.com/cvvz)) + +## Improvements + +- Forbid to scale in TiKV when the number of UP stores is equal to or less than 3 ([#3367](https://github.com/pingcap/tidb-operator/pull/3367), [@cvvz](https://github.com/cvvz)) +- `phase` is added in `BackupStatus` and `RestoreStatus`, which will be in sync with the latest condition type and shown when doing `kubectl get` ([#3397](https://github.com/pingcap/tidb-operator/pull/3397), [@namco1992](https://github.com/namco1992)) +- Skip setting `tikv_gc_life_time` via SQL for backup and restore with BR when the TiKV version >= v4.0.8 ([#3443](https://github.com/pingcap/tidb-operator/pull/3443), [@namco1992](https://github.com/namco1992)) + +## Bug Fixes + +- Fix the issue that PD cannot scale in to zero if there are other PD members outside of this `TidbCluster` ([#3456](https://github.com/pingcap/tidb-operator/pull/3456), [@dragonly](https://github.com/dragonly)) diff --git a/zh/TOC.md b/zh/TOC.md index 1a9aff1df9..23c943a956 100644 --- a/zh/TOC.md +++ b/zh/TOC.md @@ -90,6 +90,7 @@ + [TiDB Operator Roadmap](roadmap.md) + 版本发布历史 + v1.1 + - [1.1.7](releases/release-1.1.7.md) - [1.1.6](releases/release-1.1.6.md) - [1.1.5](releases/release-1.1.5.md) - [1.1.4](releases/release-1.1.4.md) diff --git a/zh/releases/release-1.1.7.md b/zh/releases/release-1.1.7.md new file mode 100644 index 0000000000..333f4d5661 --- /dev/null +++ b/zh/releases/release-1.1.7.md @@ -0,0 +1,42 @@ +--- +title: TiDB Operator 1.1.7 Release Notes +--- + +# TiDB Operator 1.1.7 Release Notes + +发布日期:2020 年 11 月 13 日 + +TiDB Operator 版本:1.1.7 + +## 兼容性变化 + +- 配置项 `prometheus.spec.config.commandOptions` 的行为发生了变化。该列表中不允许存在重复 flags,否则 Prometheus 无法启动。([#3390](https://github.com/pingcap/tidb-operator/pull/3390), [@mightyguava](https://github.com/mightyguava)) + + 不能设置的 flags 有: + + - `--web.enable-admin-api` + - `--web.enable-lifecycle` + - `--config.file` + - `--storage.tsdb.path` + - `--storage.tsdb.retention` + +## 新功能 + +- 新增 `Backup` 和 `Restore` CR 的配置项 `spec.toolImage` 来指定 BR 工具使用的二进制镜像,默认使用 `pingcap/br:${tikv_version}` ([#3471](https://github.com/pingcap/tidb-operator/pull/3471), [@namco1992](https://github.com/namco1992)) +- 新增配置项 `spec.pd.storageVolumes`、`spec.tidb.storageVolumes` 和 `spec.tikv.storageVolumes`,支持为 PD、TiDB 和 TiKV 挂载多个 PV ([#3444](https://github.com/pingcap/tidb-operator/pull/3444) [#3425](https://github.com/pingcap/tidb-operator/pull/3425), [@mikechengwei](https://github.com/mikechengwei)) +- 新增配置项 `spec.tidb.readinessProbe`,支持使用 `http://127.0.0.0:10080/status` 作为 TiDB 的就绪探针,需要 TiDB 版本 >= v4.0.9 ([#3438](https://github.com/pingcap/tidb-operator/pull/3438), [@july2993](https://github.com/july2993)) +- PD leader transfer 支持 advanced StatefulSet 启用的情况 ([#3395](https://github.com/pingcap/tidb-operator/pull/3395), [@tangwz](https://github.com/tangwz)) +- 支持在 TidbCluster CR 中设置 `spec.statefulSetUpdateStrategy` 为 `OnDelete`,来控制 StatefulSets 的更新策略 ([#3408](https://github.com/pingcap/tidb-operator/pull/3408), [@cvvz](https://github.com/cvvz)) +- 支持故障转移发生时的高可用 (HA) 调度 ([#3419](https://github.com/pingcap/tidb-operator/pull/3419), [@cvvz](https://github.com/cvvz)) +- 支持将使用 TiDB Ansible 或 TiUP 部署的 TiDB 集群,以及在同一个 Kubernetes 上部署的 TiDB 集群,在线迁移到新的 TiDB 集群 ([#3226](https://github.com/pingcap/tidb-operator/pull/3226), [@cvvz](https://github.com/cvvz)) +- 在 tidb-scheduler 中支持 advanced StatefulSet ([#3388](https://github.com/pingcap/tidb-operator/pull/3388), [@cvvz](https://github.com/cvvz)) + +## 优化提升 + +- 当 UP 状态的 stores 数量小于等于 3 时,禁止缩容 TiKV 实例 ([#3367](https://github.com/pingcap/tidb-operator/pull/3367), [@cvvz](https://github.com/cvvz)) +- 在 `BackupStatus` 和 `RestoreStatus` 中新增 `phase` 状态,用于在 `kubectl get` 返回结果中显示当前最新状态 ([#3397](https://github.com/pingcap/tidb-operator/pull/3397), [@namco1992](https://github.com/namco1992)) +- BR 在备份和恢复前,跳过设置 `tikv_gc_life_time`,由 BR 自动设置,需要 BR & TiKV 版本 >= v4.0.8 ([#3443](https://github.com/pingcap/tidb-operator/pull/3443), [@namco1992](https://github.com/namco1992)) + +## Bug 修复 + +- 修复在当前 `TidbCluster` 之外存在 PD member 的情况下,当前 TiDB Cluster 无法把 PD scale 到 0 的 bug ([#3456](https://github.com/pingcap/tidb-operator/pull/3456), [@dragonly](https://github.com/dragonly))