Skip to content

Commit

Permalink
release v1.0.0 (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface authored Jul 30, 2019
1 parent 6047095 commit fc3ad44
Show file tree
Hide file tree
Showing 9 changed files with 201 additions and 26 deletions.
182 changes: 181 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,183 @@
# TiDB Operator v1.0.0 Release Notes

## v1.0.0 What’s New

### Action Required

- ACTION REQUIRED: `tikv.storeLabels` was remove from `values.yaml`. Instead, you can set it with `location-labels` in `pd.config` directly
- ACTION REQUIRED: tidb-scheduler --features flag has been updated to use `key={true,false}` format, please append `=true` to enable the feature.
- ACTION REQUIRED: Users should migrate the configs in `values.yaml` of previous chart releases to the new `values.yaml` of the new chart, otherwise, the configurations will be ignored when upgrading TiDB cluster with the new chart.

`pd` section in old `values.yaml`:

```
pd:
logLevel: info
maxStoreDownTime: 30m
maxReplicas: 3
```

`pd` section in new `values.yaml`:

```
pd:
config: |
[log]
level = "info"
[schedule]
max-store-down-time = "30m"
[replication]
max-replicas = 3
```

`tikv` section in old `values.yaml`:

```
tikv:
logLevel: info
syncLog: true
readpoolStorageConcurrency: 4
readpoolCoprocessorConcurrency: 8
storageSchedulerWorkerPoolSize: 4
```

`tikv` section in new `values.yaml`:

```
tikv:
config: |
log-level = "info"
[server]
status-addr = "0.0.0.0:20180"
[raftstore]
sync-log = true
[readpool.storage]
high-concurrency = 4
normal-concurrency = 4
low-concurrency = 4
[readpool.coprocessor]
high-concurrency = 8
normal-concurrency = 8
low-concurrency = 8
[storage]
scheduler-worker-pool-size = 4
```

`tidb` section in old `values.yaml`:

```
tidb:
logLevel: info
preparedPlanCacheEnabled: false
preparedPlanCacheCapacity: 100
txnLocalLatchesEnabled: false
txnLocalLatchesCapacity: "10240000"
tokenLimit: "1000"
memQuotaQuery: "34359738368"
txnEntryCountLimit: "300000"
txnTotalSizeLimit: "104857600"
checkMb4ValueInUtf8: true
treatOldVersionUtf8AsUtf8mb4: true
lease: 45s
maxProcs: 0
```

`tidb` section in new `values.yaml`:

```
tidb:
config: |
token-limit = 1000
mem-quota-query = 34359738368
check-mb4-value-in-utf8 = true
treat-old-version-utf8-as-utf8mb4 = true
lease = "45s"
[log]
level = "info"
[prepared-plan-cache]
enabled = false
capacity = 100
[txn-local-latches]
enabled = false
capacity = 10240000
[performance]
txn-entry-count-limit = 300000
txn-total-size-limit = 104857600
max-procs = 0
```

`monitor` section in old `values.yaml`:

```
monitor:
create: true
...
```

`monitor` section in new `values.yaml`:

```
monitor:
create: true
initializer:
image: pingcap/tidb-monitor-initializer:v3.0.1
imagePullPolicy: IfNotPresent
reloader:
create: true
image: pingcap/tidb-monitor-reloader:v1.0.0
imagePullPolicy: IfNotPresent
service:
type: NodePort
...
```

Please check [cluster configuration](https://pingcap.com/docs/v3.0/tidb-in-kubernetes/reference/configuration/tidb-cluster/) for detailed configuration.

### Stability tests cases added

- stop all etcds and kubelets

### A lot of improvements

- Simplify GKE SSD setup
- Modularization for AWS terraform scripts
- turn on automatic failover feature by default
- Configmap rollout is now enabled by default
- Stable scheduling is now enabled by default
- Support multiple tidb clusters management in Alibaba Cloud
- Enable AWS NLB cross zone load balancing by default

### Bug fixes

- Fix sysbench installation on bastion machine of AWS deployment
- Fix TiKV metrics monitoring in default setup

## Detailed Bug Fixes And Changes

- Support-Multi-version-TiDB-monitor ([#666](https://github.com/pingcap/tidb-operator/pull/666))
- Specify tikv status address to fix monitoring ([#695](https://github.com/pingcap/tidb-operator/pull/695))
- AWS deployment: fix sysbench installation on bastion machine and… ([#688](https://github.com/pingcap/tidb-operator/pull/688))
- git remote add upstream using https ([#690](https://github.com/pingcap/tidb-operator/pull/690))
- Stability cases: stop kubelet and etcd ([#665](https://github.com/pingcap/tidb-operator/pull/665))
- limit test cover packages ([#687](https://github.com/pingcap/tidb-operator/pull/687))
- Enable nlb cross zone load balancing by default ([#686](https://github.com/pingcap/tidb-operator/pull/686))
- Add tikv raftstore parameters ([#681](https://github.com/pingcap/tidb-operator/pull/681))
- Alibaba Cloud multiple tidb clusters management support ([#658](https://github.com/pingcap/tidb-operator/pull/658))
- adjust end evict scheduler func ([#680](https://github.com/pingcap/tidb-operator/pull/680))
- add more logs ([#676](https://github.com/pingcap/tidb-operator/pull/676))
- Update feature gates to support key={true,false} syntax ([#677](https://github.com/pingcap/tidb-operator/pull/677))
- meke -> make ([#679](https://github.com/pingcap/tidb-operator/pull/679))
- Enable configmap rollout by default and quote configmap digest suffix ([#678](https://github.com/pingcap/tidb-operator/pull/678))
- turn automitic failover on ([#667](https://github.com/pingcap/tidb-operator/pull/667))
- Sets node count for default pool equal to total desired node count ([#673](https://github.com/pingcap/tidb-operator/pull/673)))
- Upgrade default TiDB version to v3.0.1 ([#671](https://github.com/pingcap/tidb-operator/pull/671))
- Remove storeLabels ([#663](https://github.com/pingcap/tidb-operator/pull/663))
- change the way to config tidb/tikv/pd in charts ([#638](https://github.com/pingcap/tidb-operator/pull/638))
- Modularization for AWS terraform scripts ([#650](https://github.com/pingcap/tidb-operator/pull/650))
- change Deferclose func ([#653](https://github.com/pingcap/tidb-operator/pull/653))
- Increase the default storage size for pump from 10Gi to 20Gi in response to stop-write-at-available-space ([#657](https://github.com/pingcap/tidb-operator/pull/657))
- Simplify local SDD setup ([#644](https://github.com/pingcap/tidb-operator/pull/644))

# TiDB Operator v1.0.0-rc.1 Release Notes

## v1.0.0-rc.1 What’s New
Expand Down Expand Up @@ -49,7 +229,7 @@
- Give kube-scheduler ability to update/patch pod status. ([#611](https://github.com/pingcap/tidb-operator/pull/611))
- Use kube-scheduler image instead of hyperkube ([#596](https://github.com/pingcap/tidb-operator/pull/596))
- fix pull request template grammar ([#607](https://github.com/pingcap/tidb-operator/pull/607))
- local SSD provision: reduce network traffic
- local SSD provision: reduce network traffic ([#601](https://github.com/pingcap/tidb-operator/pull/601))
- {origin/HEAD} {origin/master} add operator upgrade case ([#579](https://github.com/pingcap/tidb-operator/pull/579))
- fix bug that tikv status is always upgrade ([#598](https://github.com/pingcap/tidb-operator/pull/598))
- build without debugger symbols ([#592](https://github.com/pingcap/tidb-operator/pull/592))
Expand Down
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,13 @@ Read the [Roadmap](./ROADMAP.md).

## Quick start

Choose one of the following tutorials:
Read the [Quick Start Guide](https://pingcap.com/docs/v3.0/tidb-in-kubernetes/tidb-operator-overview/), which includes all the guides for managing TiDB clusters in Kubernetes.

* [Deploy TiDB using Kubernetes on Your Laptop for deployment and testing](./docs/local-dind-tutorial.md)

* [Deploy TiDB by launching a Google Kubernetes Engine](./docs/google-kubernetes-tutorial.md):
## Documentation

[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/pingcap/tidb-operator&tutorial=docs/google-kubernetes-tutorial.md)

* [Deploy TiDB by launching an AWS EKS cluster](./docs/aws-eks-tutorial.md)

* [Deploy TiDB Operator and TiDB Cluster on Alibaba Cloud Kubernetes](/deploy/aliyun/README.md)

* [Deploy TiDB in the minikube cluster](./docs/minikube-tutorial.md)

## User guide

Read the [user guide](./docs/user-guide.md).
- [English](https://pingcap.com/docs/v3.0/tidb-in-kubernetes/tidb-operator-overview/)
- [简体中文](https://pingcap.com/docs-cn/v3.0/reference/tidb-operator-overview/)

## Contributing

Expand Down
11 changes: 8 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ This document defines the roadmap for TiDB Operator development.
- [x] Automate Chaos tests
- [x] Bugfix

## v1.0.0-ga: (2019-07-26)
- [ ] Stable for production deployment
- [ ] Architecture & design document
## v1.0.0: (2019-07-30)
- [x] Stable for production deployment
- [x] Architecture & design document

## v1.1
- [ ] Support multiple drainers
- [ ] Create all statefulsets immediately
- [ ] Easy-to-use backup feature: support backup and restore with CRD
4 changes: 2 additions & 2 deletions charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
type: ClusterIP

discovery:
image: pingcap/tidb-operator:v1.0.0-rc.1
image: pingcap/tidb-operator:v1.0.0
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down Expand Up @@ -163,7 +163,7 @@ tikv:
log-level = "info"
[server]
status-addr = "0.0.0.0:20180"
# Here are some parameters you may want to customize (Please configure in the above 'config' section):
# [readpool.storage]
# ## Size of the thread pool for high-priority operations.
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.0-rc.1
operatorImage: pingcap/tidb-operator:v1.0.0
imagePullPolicy: IfNotPresent

defaultStorageClassName: local-storage
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.0-rc.1"
default = "v1.0.0"
}

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 @@ -10,7 +10,7 @@ variable "tidb_version" {

variable "tidb_operator_version" {
description = "TiDB operator version"
default = "v1.0.0-rc.1"
default = "v1.0.0"
}

variable "tidb_operator_registry" {
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.0-rc.1"
default = "v1.0.0"
}

variable "operator_helm_values" {
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.0-rc.1
- --operator-tag=v1.0.0-rc.1
- --operator-image=pingcap/tidb-operator:v1.0.0
- --operator-tag=v1.0.0
- --slack-webhook-url=""
volumeMounts:
- mountPath: /logDir
Expand Down

0 comments on commit fc3ad44

Please sign in to comment.