Skip to content

Commit

Permalink
add deprecated warnings for outdated deployment methods (pingcap#3626)
Browse files Browse the repository at this point in the history
* add deprecated warnings for outdated deployment methods

* test

* Update schedule-replicas-by-topology-labels.md

Co-authored-by: Lilian Lee <lilin@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 16, 2020
1 parent 3daa394 commit 04f37ba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
comment: 'Rules for PingCAP docs-cn'
comment: 'Markdownlint Rules for PingCAP docs-cn'

# disable all by default
default: false
Expand Down
6 changes: 3 additions & 3 deletions deploy-test-cluster-using-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ aliases: ['/docs-cn/dev/how-to/get-started/deploy-tidb-from-docker-compose/']

# 使用 Docker Compose 快速构建 TiDB 集群

本文档介绍如何在单机上通过 Docker Compose 快速一键部署一套 TiDB 测试集群。[Docker Compose](https://docs.docker.com/compose/overview) 可以通过一个 YAML 文件定义多个容器的应用服务,然后一键启动或停止。

> **警告:**
>
> 对于生产环境,不要使用 Docker Compose 进行部署,而应[使用 TiUP 部署 TiDB 集群](/production-deployment-using-tiup.md)
> 本文提供的 Docker Compose 部署方案已停止维护。如果只是为了测试 TiDB,推荐参考[TiDB 数据库快速上手指南](/quick-start-with-tidb.md)进行部署。对于**生产环境**,不要使用 Docker Compose 进行部署,而应[使用 TiUP 部署 TiDB 集群](/production-deployment-using-tiup.md)
本文档介绍如何在单机上通过 Docker Compose 快速一键部署一套 TiDB 测试集群。[Docker Compose](https://docs.docker.com/compose/overview) 可以通过一个 YAML 文件定义多个容器的应用服务,然后一键启动或停止。

## 准备环境

Expand Down
1 change: 0 additions & 1 deletion quick-start-with-tidb.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: TiDB 数据库快速上手指南
category: how-to
aliases: ['/docs-cn/dev/test-deployment-using-docker/']
---

# TiDB 数据库快速上手指南
Expand Down
2 changes: 1 addition & 1 deletion schedule-replicas-by-topology-labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ aliases: ['/docs-cn/dev/how-to/deploy/geographic-redundancy/location-awareness/'

为了提升 TiDB 集群的高可用性和数据容灾能力,我们推荐让 TiKV 节点尽可能在物理层面上分散,例如让 TiKV 节点分布在不同的机架甚至不同的机房。PD 调度器根据 TiKV 的拓扑信息,会自动在后台通过调度使得 Region 的各个副本尽可能隔离,从而使得数据容灾能力最大化。

要让这个机制生效,我们需要在部署时进行合理配置,把集群的拓扑信息(特别是 TiKV 的位置)上报给 PD。阅读本章前,请先确保阅读 [TiDB Ansible 部署方案](/online-deployment-using-ansible.md)[Docker 部署方案](/test-deployment-using-docker.md)
要让这个机制生效,需要在部署时进行合理配置,把集群的拓扑信息(特别是 TiKV 的位置)上报给 PD。阅读本章前,请先确保阅读 [TiUP 部署方案](/production-deployment-using-tiup.md)

## 根据集群拓扑配置 labels

Expand Down
7 changes: 3 additions & 4 deletions test-deployment-using-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
title: TiDB Docker 部署方案
category: how-to
aliases: ['/docs-cn/dev/how-to/deploy/orchestrated/docker/']
draft: true
---

# TiDB Docker 部署方案

本文介绍如何使用 Docker 部署一个多节点的 TiDB 集群。

> **警告:**
>
> 对于生产环境,不要使用 Docker 进行部署,而应[使用 TiUP 部署 TiDB 集群](/production-deployment-using-tiup.md)
> 本文提供的 Docker 部署方案已停止维护。如果只是为了测试 TiDB,推荐参考[TiDB 数据库快速上手指南](/quick-start-with-tidb.md)进行部署。对于**生产环境**,不要使用 Docker 进行部署,而应[使用 TiUP 部署 TiDB 集群](/production-deployment-using-tiup.md)
本文介绍如何使用 Docker 在测试环境部署一个多节点的 TiDB 集群。

## 环境准备

Expand Down

0 comments on commit 04f37ba

Please sign in to comment.