 RDBMSとNoSQLのメリットを併せ持つクラウドネイティブなNewSQLデータベース
「TiDB」をKubernetesで動かしてみよう!ある? Open Source Conference 2022 Online/Spring 31 tiup とは TiDB をインストール、管理するためのツール TiDB の構成情報を yaml で定義し、tiup に読み込ませることで TiDB を自動で構築することが可能 構築するだけではなくて sysctl の設定やチューニング等もやってく れる 構成ノードに対して ssh のベンチマークもかけることが可能 https://github.com/pingcap/tiup Open Source Conference 2022 Online/Spring 32 構成情報の yaml はこんな感じ ? この構成情報を元に TiDB のクラスターを自動で作成してくれる! tiup とは https://github.com/pingcap/tiup Open Source Source Conference 2022 Online/Spring 36 tidb-operator は Kubernetes 上で動くコントローラー tiup で使用する topology.yaml と同じような内容を Kubernetes の カスタムリソース TidbCluster で定義してあげる tidb-operator は定義された通りに Kubernetes のクラスター上に0 码力 | 71 页 | 6.65 MB | 1 年前3 RDBMSとNoSQLのメリットを併せ持つクラウドネイティブなNewSQLデータベース
「TiDB」をKubernetesで動かしてみよう!ある? Open Source Conference 2022 Online/Spring 31 tiup とは TiDB をインストール、管理するためのツール TiDB の構成情報を yaml で定義し、tiup に読み込ませることで TiDB を自動で構築することが可能 構築するだけではなくて sysctl の設定やチューニング等もやってく れる 構成ノードに対して ssh のベンチマークもかけることが可能 https://github.com/pingcap/tiup Open Source Conference 2022 Online/Spring 32 構成情報の yaml はこんな感じ ? この構成情報を元に TiDB のクラスターを自動で作成してくれる! tiup とは https://github.com/pingcap/tiup Open Source Source Conference 2022 Online/Spring 36 tidb-operator は Kubernetes 上で動くコントローラー tiup で使用する topology.yaml と同じような内容を Kubernetes の カスタムリソース TidbCluster で定義してあげる tidb-operator は定義された通りに Kubernetes のクラスター上に0 码力 | 71 页 | 6.65 MB | 1 年前3
 TiDB v5.4 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 92 3.1.2.1 Prepare Prepare a target machine that meets the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the Execute the cluster deployment command: tiup cluster deploy TiDB v5.4 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 92 3.1.2.1 Prepare Prepare a target machine that meets the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the Execute the cluster deployment command: tiup cluster deploy- ./topo.yaml --user �→ root -p • - : Set the cluster name • - : Set the TiDB cluster 0 码力 | 3650 页 | 52.72 MB | 1 年前3
 TiDB v6.1 中文手册2 在单机上模拟部署生产环境集群 • 适用场景:希望用单台 Linux 服务器,体验 TiDB 最小的完整拓扑的集群,并模拟生产环境下的部署步骤。 本节介绍如何参照 TiUP 最小拓扑的一个 YAML 文件部署 TiDB 集群。 85 3.1.2.1 准备环境 准备一台部署主机,确保其软件满足需求: • 推荐安装 CentOS 7.3 及以上版本 • 运行环境可以支持互联网访问,用于下载 将 MaxSessions 调至 20。 2. 重启 sshd 服务: service sshd restart 6. 创建并启动集群 按下面的配置模板,编辑配置文件,命名为 topo.yaml,其中: • user: "tidb":表示通过 tidb 系统用户(部署会自动创建)来做集群的内部管理,默认使用 22 端 口通过 ssh 登录目标机器 • replication.enab grafana_servers: - host: 10.0.1.1 88 7. 执行集群部署命令: tiup cluster deploy TiDB v6.1 中文手册2 在单机上模拟部署生产环境集群 • 适用场景:希望用单台 Linux 服务器,体验 TiDB 最小的完整拓扑的集群,并模拟生产环境下的部署步骤。 本节介绍如何参照 TiUP 最小拓扑的一个 YAML 文件部署 TiDB 集群。 85 3.1.2.1 准备环境 准备一台部署主机,确保其软件满足需求: • 推荐安装 CentOS 7.3 及以上版本 • 运行环境可以支持互联网访问,用于下载 将 MaxSessions 调至 20。 2. 重启 sshd 服务: service sshd restart 6. 创建并启动集群 按下面的配置模板,编辑配置文件,命名为 topo.yaml,其中: • user: "tidb":表示通过 tidb 系统用户(部署会自动创建)来做集群的内部管理,默认使用 22 端 口通过 ssh 登录目标机器 • replication.enab grafana_servers: - host: 10.0.1.1 88 7. 执行集群部署命令: tiup cluster deploy- ./topo.yaml --user root -p • 参数 - 表示设置集群名称 • 参数 - 表示设置集群版本,可以通过 tiup list tidb 命令来查看当前支持部署的 0 码力 | 3572 页 | 84.36 MB | 1 年前3
 TiDB v6.1 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 3.1.2.1 Prepare Prepare a target machine that meets the following cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the Execute the cluster deployment command: tiup cluster deploy TiDB v6.1 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 3.1.2.1 Prepare Prepare a target machine that meets the following cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the Execute the cluster deployment command: tiup cluster deploy- ./topo.yaml --user �→ root -p • - : Set the cluster name • - : Set the TiDB cluster 0 码力 | 4487 页 | 84.44 MB | 1 年前3
 TiDB v5.4 中文手册2 在单机上模拟部署生产环境集群 • 适用场景:希望用单台 Linux 服务器,体验 TiDB 最小的完整拓扑的集群,并模拟生产环境下的部署步骤。 本节介绍如何参照 TiUP 最小拓扑的一个 YAML 文件部署 TiDB 集群。 76 3.1.2.1 准备环境 准备一台部署主机,确保其软件满足需求: • 推荐安装 CentOS 7.3 及以上版本 • 运行环境可以支持互联网访问,用于下载 将 MaxSessions 调至 20。 2. 重启 sshd 服务: service sshd restart 6. 创建并启动集群 按下面的配置模板,编辑配置文件,命名为 topo.yaml,其中: • user: "tidb":表示通过 tidb 系统用户(部署会自动创建)来做集群的内部管理,默认使用 22 端 口通过 ssh 登录目标机器 • replication.enab grafana_servers: - host: 10.0.1.1 79 7. 执行集群部署命令: tiup cluster deploy TiDB v5.4 中文手册2 在单机上模拟部署生产环境集群 • 适用场景:希望用单台 Linux 服务器,体验 TiDB 最小的完整拓扑的集群,并模拟生产环境下的部署步骤。 本节介绍如何参照 TiUP 最小拓扑的一个 YAML 文件部署 TiDB 集群。 76 3.1.2.1 准备环境 准备一台部署主机,确保其软件满足需求: • 推荐安装 CentOS 7.3 及以上版本 • 运行环境可以支持互联网访问,用于下载 将 MaxSessions 调至 20。 2. 重启 sshd 服务: service sshd restart 6. 创建并启动集群 按下面的配置模板,编辑配置文件,命名为 topo.yaml,其中: • user: "tidb":表示通过 tidb 系统用户(部署会自动创建)来做集群的内部管理,默认使用 22 端 口通过 ssh 登录目标机器 • replication.enab grafana_servers: - host: 10.0.1.1 79 7. 执行集群部署命令: tiup cluster deploy- ./topo.yaml --user root -p • 参数 - 表示设置集群名称 • 参数 - 表示设置集群版本,可以通过 tiup list tidb 命令来查看当前支持部署的 0 码力 | 2852 页 | 52.59 MB | 1 年前3
 TiDB v6.5 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 110 3.1.2.1 Prepare Prepare a target machine that meets cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the 7. Execute the cluster deployment command: tiup cluster deploy TiDB v6.5 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 110 3.1.2.1 Prepare Prepare a target machine that meets cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the 7. Execute the cluster deployment command: tiup cluster deploy- ./topo.yaml --user root -p • - : Set the cluster name • - : Set the TiDB cluster version 0 码力 | 5282 页 | 99.69 MB | 1 年前3
 TiDB v7.6 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 3.1.2.1 Prepare Before deploying the TiDB cluster, ensure cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the 7. Execute the cluster deployment command: tiup cluster deploy TiDB v7.6 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 3.1.2.1 Prepare Before deploying the TiDB cluster, ensure cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the 7. Execute the cluster deployment command: tiup cluster deploy- ./topo.yaml --user root -p • - : Set the cluster name • - : Set the TiDB cluster version 0 码力 | 6123 页 | 107.24 MB | 1 年前3
 TiDB v7.1 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 111 3.1.2.1 Prepare Before deploying the TiDB cluster, ensure cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the 7. Execute the cluster deployment command: tiup cluster deploy TiDB v7.1 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 111 3.1.2.1 Prepare Before deploying the TiDB cluster, ensure cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as the �→ default value of # # the 7. Execute the cluster deployment command: tiup cluster deploy- ./topo.yaml --user root -p • - : Set the cluster name • - : Set the TiDB cluster version 0 码力 | 5716 页 | 104.74 MB | 1 年前3
 TiDB v7.5 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 3.1.2.1 Prepare Before deploying the TiDB cluster, ensure cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: 94 # # Global variables are applied to all deployments and used as the �→ default value of # 7. Execute the cluster deployment command: tiup cluster deploy TiDB v7.5 Documentationdeployment steps on a single Linux server. This section describes how to deploy a TiDB cluster using a YAML file of the smallest topology in TiUP. 3.1.2.1 Prepare Before deploying the TiDB cluster, ensure cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: 94 # # Global variables are applied to all deployments and used as the �→ default value of # 7. Execute the cluster deployment command: tiup cluster deploy- ./topo.yaml --user root -p • - : Set the cluster name • - : Set the TiDB cluster version 0 码力 | 6020 页 | 106.82 MB | 1 年前3
 TiDB v7.1 中文手册2 在单机上模拟部署生产环境集群 • 适用场景:希望用单台 Linux 服务器,体验 TiDB 最小的完整拓扑的集群,并模拟生产环境下的部署步骤。 本节介绍如何参照 TiUP 最小拓扑的一个 YAML 文件部署 TiDB 集群。 3.1.2.1 准备环境 开始部署 TiDB 集群前,准备一台部署主机,确保其软件满足需求: • 推荐安装 CentOS 7.3 及以上版本 • 运行环境可以支持互联网访问,用于下载 将 MaxSessions 调至 20。 2. 重启 sshd 服务: service sshd restart 6. 创建并启动集群 按下面的配置模板,编辑配置文件,命名为 topo.yaml,其中: • user: "tidb":表示通过 tidb 系统用户(部署会自动创建)来做集群的内部管理,默认使用 22 端 口通过 ssh 登录目标机器 • replication.enab grafana_servers: - host: 10.0.1.1 7. 执行集群部署命令: tiup cluster deploy TiDB v7.1 中文手册2 在单机上模拟部署生产环境集群 • 适用场景:希望用单台 Linux 服务器,体验 TiDB 最小的完整拓扑的集群,并模拟生产环境下的部署步骤。 本节介绍如何参照 TiUP 最小拓扑的一个 YAML 文件部署 TiDB 集群。 3.1.2.1 准备环境 开始部署 TiDB 集群前,准备一台部署主机,确保其软件满足需求: • 推荐安装 CentOS 7.3 及以上版本 • 运行环境可以支持互联网访问,用于下载 将 MaxSessions 调至 20。 2. 重启 sshd 服务: service sshd restart 6. 创建并启动集群 按下面的配置模板,编辑配置文件,命名为 topo.yaml,其中: • user: "tidb":表示通过 tidb 系统用户(部署会自动创建)来做集群的内部管理,默认使用 22 端 口通过 ssh 登录目标机器 • replication.enab grafana_servers: - host: 10.0.1.1 7. 执行集群部署命令: tiup cluster deploy- ./topo.yaml --user root -p • 参数 - 表示设置集群名称 • 参数 - 表示设置集群版本,例如 v7.1.5。可以通过 tiup list tidb 0 码力 | 4369 页 | 98.92 MB | 1 年前3
共 33 条
- 1
- 2
- 3
- 4













