Skip to content

Commit

Permalink
release v1.0.2 (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface authored Nov 1, 2019
1 parent e77a884 commit 60a6f80
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 15 deletions.
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
# TiDB Operator v1.0.2 Release Notes

## v1.0.2 What's New

### Action Required

The AWS Terraform script uses auto-scaling-group for all components (PD/TiKV/TiDB/monitor). When an ec2 instance fails the health check, the instance will be replaced. This is helpful for those applications that are stateless or use EBS volumes to store data.

But a TiKV Pod uses instance store to store its data. When an instance is replaced, all the data on its store will be lost. TiKV has to resync all data to the newly added instance. Though TiDB is a distributed database and can work when a node fails, resyncing data can cost much if the dataset is large. Besides, the ec2 instance may be recovered to a healthy state by rebooting.

So we disabled the auto-scaling-group's replacing behavior in `v1.0.2`.

Auto-scaling-group scaling process can also be suspended according to its [documentation](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) if you are using `v1.0.1` or prior versions.

### Improvements

- Suspend ReplaceUnhealthy process for AWS TiKV auto-scaling-group
- Add a new VM manager `qm` in stability test
- Add `tikv.maxFailoverCount` limit to TiKV
- Set the default `externalTrafficPolicy` to be `Local` for TiDB service in AWS/GCP/Aliyun
- Add provider and module versions for AWS

### Bug fixes

- Fix the issue that tkctl version does not work when the release name is un-wanted
- Migrate statefulsets apiVersion to `app/v1` which fixes compatibility with Kubernetes 1.16 and above versions
- Fix the issue that the `create_tidb_cluster_release` variable in AWS Terraform script does not work
- Fix compatibility issues by adding `v1beta1` to statefulset apiVersions
- Fix the issue that TiDB Loadbalancer is empty in Terraform output
- Fix a compatibility issue of TiKV `maxFailoverCount`
- Fix Terraform providers version constraint issues for GCP and Aliyun
- Fix values file customization for tidb-operator on Aliyun
- Fix tidb-operator crash when users modify statefulset upgrade strategy improperly
- Fix drainer misconfiguration

## Detailed Bug Fixes and Changes

- Fix the issue that tkctl version does not work when the release name is un-wanted ([#1065](https://github.com/pingcap/tidb-operator/pull/1065))
- Fix the issue that the `create_tidb_cluster_release` variable in AWS terraform script does not work ([#1062](https://github.com/pingcap/tidb-operator/pull/1062))
- Fix compatibility issues for ([#1012](https://github.com/pingcap/tidb-operator/pull/1012)): add `v1beta1` to statefulset apiVersions ([#1054](https://github.com/pingcap/tidb-operator/pull/1054))
- Enable ConfigMapRollout by default in stability test ([#1036](https://github.com/pingcap/tidb-operator/pull/1036))
- Fix the issue that TiDB Loadbalancer is empty in Terraform output ([#1045](https://github.com/pingcap/tidb-operator/pull/1045))
- Migrate statefulsets apiVersion to `app/v1` which fixes compatibility with Kubernetes 1.16 and above versions ([#1012](https://github.com/pingcap/tidb-operator/pull/1012))
- Only expect TiDB cluster upgrade to be complete when rolling back wrong configuration in stability test ([#1030](https://github.com/pingcap/tidb-operator/pull/1030))
- Suspend ReplaceUnhealthy process for AWS TiKV auto-scaling-group ([#1014](https://github.com/pingcap/tidb-operator/pull/1014))
- Add a new VM manager `qm` in stability test ([#896](https://github.com/pingcap/tidb-operator/pull/896))
- Fix provider versions constraint issues for GCP and Aliyun ([#959](https://github.com/pingcap/tidb-operator/pull/959))
- Fix values file customization for tidb-operator on Aliyun ([#971](https://github.com/pingcap/tidb-operator/pull/971))
- Fix a compatibility issue of TiKV `tikv.maxFailoverCount` ([#977](https://github.com/pingcap/tidb-operator/pull/977))
- Add `tikv.maxFailoverCount` limit to TiKV ([#965](https://github.com/pingcap/tidb-operator/pull/965))
- Fix tidb-operator crash when users modify statefulset upgrade strategy improperly ([#912](https://github.com/pingcap/tidb-operator/pull/912))
- Set the default `externalTrafficPolicy` to be `Local` for TiDB service in AWS/GCP/Aliyun ([#947](https://github.com/pingcap/tidb-operator/pull/947))
- Add note about setting PV reclaim policy to retain ([#911](https://github.com/pingcap/tidb-operator/pull/911))
- Fix drainer misconfiguration ([#939](https://github.com/pingcap/tidb-operator/pull/939))
- Add provider and module versions for AWS ([#926](https://github.com/pingcap/tidb-operator/pull/926))

# TiDB Operator v1.0.1 Release Notes

## v1.0.1 What's New
Expand Down
2 changes: 1 addition & 1 deletion charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
type: ClusterIP

discovery:
image: pingcap/tidb-operator:v1.0.1
image: pingcap/tidb-operator:v1.0.2
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion charts/tidb-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rbac:
create: true

# operatorImage is TiDB Operator image
operatorImage: pingcap/tidb-operator:v1.0.1
operatorImage: pingcap/tidb-operator:v1.0.2
imagePullPolicy: IfNotPresent

defaultStorageClassName: local-storage
Expand Down
4 changes: 2 additions & 2 deletions deploy/aliyun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ variable "bastion_cpu_core_count" {

variable "operator_version" {
type = string
default = "v1.0.1"
default = "v1.0.2"
}

variable "operator_helm_values" {
Expand Down Expand Up @@ -40,7 +40,7 @@ variable "tidb_version" {
}
variable "tidb_cluster_chart_version" {
description = "tidb-cluster chart version"
default = "v1.0.1"
default = "v1.0.2"
}

variable "pd_count" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variable "eks_version" {

variable "operator_version" {
description = "TiDB operator version"
default = "v1.0.1"
default = "v1.0.2"
}

variable "operator_values" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ variable "tidb_version" {
}

variable "tidb_operator_version" {
default = "v1.0.1"
default = "v1.0.2"
}

variable "tidb_operator_chart_version" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aliyun/tidb-cluster/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variable "tidb_version" {

variable "tidb_cluster_chart_version" {
description = "tidb-cluster chart version"
default = "v1.0.1"
default = "v1.0.2"
}

variable "pd_count" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aliyun/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ variable "cluster_network_type" {

variable "operator_version" {
type = string
default = "v1.0.1"
default = "v1.0.2"
}

variable "operator_helm_values" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aws/tidb-cluster/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "tidb_cluster_chart_version" {
description = "tidb-cluster chart version"
default = "v1.0.1"
default = "v1.0.2"
}

variable "create_tidb_cluster_release" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aws/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variable "eks_version" {
variable "operator_version" {
description = "TiDB Operator version"
type = string
default = "v1.0.1"
default = "v1.0.2"
}

variable "operator_helm_values" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/gcp/tidb-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ variable "cluster_version" {
}
variable "tidb_cluster_chart_version" {
description = "The TiDB cluster chart version"
default = "v1.0.1"
default = "v1.0.2"
}
variable "override_values" {
description = "YAML formatted values that will be passed in to the tidb-cluster helm release"
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/gcp/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ variable "gke_version" {
variable "tidb_operator_version" {
description = "TiDB Operator version"
type = string
default = "v1.0.1"
default = "v1.0.2"
}

variable "operator_helm_values" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/share/tidb-cluster-release/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variable "kubeconfig_filename" {

variable "tidb_cluster_chart_version" {
description = "tidb-cluster chart version"
default = "v1.0.1"
default = "v1.0.2"
}

variable "create" {
Expand Down
4 changes: 2 additions & 2 deletions tests/manifests/stability/stability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
command:
- /usr/local/bin/stability-test
- --config=/etc/tidb-operator-stability/config.yaml
- --operator-image=pingcap/tidb-operator:v1.0.1
- --operator-tag=v1.0.1
- --operator-image=pingcap/tidb-operator:v1.0.2
- --operator-tag=v1.0.2
- --slack-webhook-url=""
volumeMounts:
- mountPath: /logDir
Expand Down

0 comments on commit 60a6f80

Please sign in to comment.