From fafc6f60e60b5593cd26d1a32c6e1418ee25a49e Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Tue, 30 Jul 2024 10:55:18 +0800 Subject: [PATCH] add hint for log collect and k8s prometheus monitor in deploy doc (#2600) (#2605) --- en/deploy-on-aws-eks.md | 12 ++++++++++++ en/deploy-on-azure-aks.md | 12 ++++++++++++ en/deploy-on-gcp-gke.md | 12 ++++++++++++ en/deploy-on-general-kubernetes.md | 12 ++++++++++++ zh/deploy-on-aws-eks.md | 12 ++++++++++++ zh/deploy-on-azure-aks.md | 12 ++++++++++++ zh/deploy-on-gcp-gke.md | 12 ++++++++++++ zh/deploy-on-general-kubernetes.md | 12 ++++++++++++ 8 files changed, 96 insertions(+) diff --git a/en/deploy-on-aws-eks.md b/en/deploy-on-aws-eks.md index 3cc1748880..040231e758 100644 --- a/en/deploy-on-aws-eks.md +++ b/en/deploy-on-aws-eks.md @@ -667,3 +667,15 @@ Depending on the EKS cluster status, use different commands: Finally, execute `kubectl -n tidb-cluster apply -f tidb-cluster.yaml` to update the TiDB cluster configuration. For detailed CR configuration, refer to [API references](https://github.com/pingcap/tidb-operator/blob/master/docs/api-references/docs.md) and [Configure a TiDB Cluster](configure-a-tidb-cluster.md). + +## Configure TiDB monitoring + +For more information, see [Deploy monitoring and alerts for a TiDB cluster](monitor-a-tidb-cluster.md). + +> **Note:** +> +> TiDB monitoring does not persist data by default. To ensure long-term data availability, it is recommended to [persist monitoring data](monitor-a-tidb-cluster.md#persist-monitoring-data). TiDB monitoring does not include Pod CPU, memory, or disk monitoring, nor does it have an alerting system. For more comprehensive monitoring and alerting, it is recommended to [Set kube-prometheus and AlertManager](monitor-a-tidb-cluster.md#set-kube-prometheus-and-alertmanager). + +## Collect logs + +System and application logs can be useful for troubleshooting issues and automating operations. By default, TiDB components output logs to the container's `stdout` and `stderr`, and log rotation is automatically performed based on the container runtime environment. When a Pod restarts, container logs will be lost. To prevent log loss, it is recommended to [Collect logs of TiDB and its related components](logs-collection.md). diff --git a/en/deploy-on-azure-aks.md b/en/deploy-on-azure-aks.md index 7f98f38aa0..c99bb7a1b2 100644 --- a/en/deploy-on-azure-aks.md +++ b/en/deploy-on-azure-aks.md @@ -615,3 +615,15 @@ For instance types that provide local disks, refer to [Lsv2-series](https://docs Add the `tikv.storageClassName` field to the `tidb-cluster.yaml` file and set the value of the field to `local-storage`. For more information, refer to [Deploy TiDB cluster and its monitoring components](#deploy) + +## Configure TiDB monitoring + +For more information, see [Deploy monitoring and alerts for a TiDB cluster](monitor-a-tidb-cluster.md). + +> **Note:** +> +> TiDB monitoring does not persist data by default. To ensure long-term data availability, it is recommended to [persist monitoring data](monitor-a-tidb-cluster.md#persist-monitoring-data). TiDB monitoring does not include Pod CPU, memory, or disk monitoring, nor does it have an alerting system. For more comprehensive monitoring and alerting, it is recommended to [Set kube-prometheus and AlertManager](monitor-a-tidb-cluster.md#set-kube-prometheus-and-alertmanager). + +## Collect logs + +System and application logs can be useful for troubleshooting issues and automating operations. By default, TiDB components output logs to the container's `stdout` and `stderr`, and log rotation is automatically performed based on the container runtime environment. When a Pod restarts, container logs will be lost. To prevent log loss, it is recommended to [Collect logs of TiDB and its related components](logs-collection.md). diff --git a/en/deploy-on-gcp-gke.md b/en/deploy-on-gcp-gke.md index 300efb855e..cb9d5ef279 100644 --- a/en/deploy-on-gcp-gke.md +++ b/en/deploy-on-gcp-gke.md @@ -446,3 +446,15 @@ The two components are *not required* in the deployment. This section shows a qu Finally, execute `kubectl -n tidb-cluster apply -f tidb-cluster.yaml` to update the TiDB cluster configuration. For detailed CR configuration, refer to [API references](https://github.com/pingcap/tidb-operator/blob/master/docs/api-references/docs.md) and [Configure a TiDB Cluster](configure-a-tidb-cluster.md). + +## Configure TiDB monitoring + +For more information, see [Deploy monitoring and alerts for a TiDB cluster](monitor-a-tidb-cluster.md). + +> **Note:** +> +> TiDB monitoring does not persist data by default. To ensure long-term data availability, it is recommended to [persist monitoring data](monitor-a-tidb-cluster.md#persist-monitoring-data). TiDB monitoring does not include Pod CPU, memory, or disk monitoring, nor does it have an alerting system. For more comprehensive monitoring and alerting, it is recommended to [Set kube-prometheus and AlertManager](monitor-a-tidb-cluster.md#set-kube-prometheus-and-alertmanager). + +## Collect logs + +System and application logs can be useful for troubleshooting issues and automating operations. By default, TiDB components output logs to the container's `stdout` and `stderr`, and log rotation is automatically performed based on the container runtime environment. When a Pod restarts, container logs will be lost. To prevent log loss, it is recommended to [Collect logs of TiDB and its related components](logs-collection.md). diff --git a/en/deploy-on-general-kubernetes.md b/en/deploy-on-general-kubernetes.md index 1d5206dbbc..dca945a9d4 100644 --- a/en/deploy-on-general-kubernetes.md +++ b/en/deploy-on-general-kubernetes.md @@ -129,3 +129,15 @@ If you want to initialize your cluster after deployment, refer to [Initialize a > **Note:** > > By default, TiDB (starting from v4.0.2) periodically shares usage details with PingCAP to help understand how to improve the product. For details about what is shared and how to disable the sharing, see [Telemetry](https://docs.pingcap.com/tidb/stable/telemetry). + +## Configure TiDB monitoring + +For more information, see [Deploy monitoring and alerts for a TiDB cluster](monitor-a-tidb-cluster.md). + +> **Note:** +> +> TiDB monitoring does not persist data by default. To ensure long-term data availability, it is recommended to [persist monitoring data](monitor-a-tidb-cluster.md#persist-monitoring-data). TiDB monitoring does not include Pod CPU, memory, or disk monitoring, nor does it have an alerting system. For more comprehensive monitoring and alerting, it is recommended to [Set kube-prometheus and AlertManager](monitor-a-tidb-cluster.md#set-kube-prometheus-and-alertmanager). + +## Collect logs + +System and application logs can be useful for troubleshooting issues and automating operations. By default, TiDB components output logs to the container's `stdout` and `stderr`, and log rotation is automatically performed based on the container runtime environment. When a Pod restarts, container logs will be lost. To prevent log loss, it is recommended to [Collect logs of TiDB and its related components](logs-collection.md). diff --git a/zh/deploy-on-aws-eks.md b/zh/deploy-on-aws-eks.md index 84be43da2c..075104aa4c 100644 --- a/zh/deploy-on-aws-eks.md +++ b/zh/deploy-on-aws-eks.md @@ -649,3 +649,15 @@ spec: 最后使用 `kubectl -n tidb-cluster apply -f tidb-cluster.yaml` 更新 TiDB 集群配置。 更多可参考 [API 文档](https://github.com/pingcap/tidb-operator/blob/master/docs/api-references/docs.md)和[集群配置文档](configure-a-tidb-cluster.md)完成 CR 文件配置。 + +## 配置 TiDB 监控 + +请参阅[部署 TiDB 集群监控与告警](monitor-a-tidb-cluster.md)。 + +> **注意:** +> +> TiDB 监控默认不会持久化数据,为确保数据长期可用,建议[持久化监控数据](monitor-a-tidb-cluster.md#持久化监控数据)。TiDB 监控不包含 Pod 的 CPU、内存、磁盘监控,也没有报警系统。为实现更全面的监控和告警,建议[设置 kube-prometheus 与 AlertManager](monitor-a-tidb-cluster.md#设置-kube-prometheus-与-alertmanager)。 + +## 收集日志 + +系统与程序的运行日志对排查问题和实现自动化操作可能非常有用。TiDB 各组件默认将日志输出到容器的 `stdout` 和 `stderr` 中,并依据容器运行时环境自动进行日志的滚动清理。当 Pod 重启时,容器日志会丢失。为防止日志丢失,建议[收集 TiDB 及相关组件日志](logs-collection.md)。 diff --git a/zh/deploy-on-azure-aks.md b/zh/deploy-on-azure-aks.md index d92d5d5d7f..7474b36c12 100644 --- a/zh/deploy-on-azure-aks.md +++ b/zh/deploy-on-azure-aks.md @@ -598,3 +598,15 @@ Azure Disk 支持多种磁盘类型。若需要低延迟、高吞吐,可以选 3. 使用本地存储。 完成前面步骤后,local-volume-provisioner 即可发现集群内所有本地 NVMe SSD 盘。在 tidb-cluster.yaml 中添加 `tikv.storageClassName` 字段并设置为 `local-storage` 即可,可以参考前文[部署 TiDB 集群和监控](#部署-tidb-集群和监控)部分。 + +## 配置 TiDB 监控 + +请参阅[部署 TiDB 集群监控与告警](monitor-a-tidb-cluster.md)。 + +> **注意:** +> +> TiDB 监控默认不会持久化数据,为确保数据长期可用,建议[持久化监控数据](monitor-a-tidb-cluster.md#持久化监控数据)。TiDB 监控不包含 Pod 的 CPU、内存、磁盘监控,也没有报警系统。为实现更全面的监控和告警,建议[设置 kube-prometheus 与 AlertManager](monitor-a-tidb-cluster.md#设置-kube-prometheus-与-alertmanager)。 + +## 收集日志 + +系统与程序的运行日志对排查问题和实现自动化操作可能非常有用。TiDB 各组件默认将日志输出到容器的 `stdout` 和 `stderr` 中,并依据容器运行时环境自动进行日志的滚动清理。当 Pod 重启时,容器日志会丢失。为防止日志丢失,建议[收集 TiDB 及相关组件日志](logs-collection.md)。 diff --git a/zh/deploy-on-gcp-gke.md b/zh/deploy-on-gcp-gke.md index 55f48a397f..cde18a8be9 100644 --- a/zh/deploy-on-gcp-gke.md +++ b/zh/deploy-on-gcp-gke.md @@ -425,3 +425,15 @@ spec: 最后使用 `kubectl -n tidb-cluster apply -f tidb-cluster.yaml` 更新 TiDB 集群配置。 更多可参考 [API 文档](https://github.com/pingcap/tidb-operator/blob/master/docs/api-references/docs.md)和[集群配置文档](configure-a-tidb-cluster.md)完成 CR 文件配置。 + +## 配置 TiDB 监控 + +请参阅[部署 TiDB 集群监控与告警](monitor-a-tidb-cluster.md)。 + +> **注意:** +> +> TiDB 监控默认不会持久化数据,为确保数据长期可用,建议[持久化监控数据](monitor-a-tidb-cluster.md#持久化监控数据)。TiDB 监控不包含 Pod 的 CPU、内存、磁盘监控,也没有报警系统。为实现更全面的监控和告警,建议[设置 kube-prometheus 与 AlertManager](monitor-a-tidb-cluster.md#设置-kube-prometheus-与-alertmanager)。 + +## 收集日志 + +系统与程序的运行日志对排查问题和实现自动化操作可能非常有用。TiDB 各组件默认将日志输出到容器的 `stdout` 和 `stderr` 中,并依据容器运行时环境自动进行日志的滚动清理。当 Pod 重启时,容器日志会丢失。为防止日志丢失,建议[收集 TiDB 及相关组件日志](logs-collection.md)。 diff --git a/zh/deploy-on-general-kubernetes.md b/zh/deploy-on-general-kubernetes.md index b3c3cc3304..054505518a 100644 --- a/zh/deploy-on-general-kubernetes.md +++ b/zh/deploy-on-general-kubernetes.md @@ -129,3 +129,15 @@ aliases: ['/zh/tidb-in-kubernetes/v1.2/deploy-tidb-enterprise-edition'] > **注意:** > > TiDB(v4.0.2 起)默认会定期收集使用情况信息,并将这些信息分享给 PingCAP 用于改善产品。若要了解所收集的信息详情及如何禁用该行为,请参见[遥测](https://docs.pingcap.com/zh/tidb/stable/telemetry)。 + +## 配置 TiDB 监控 + +请参阅[部署 TiDB 集群监控与告警](monitor-a-tidb-cluster.md)。 + +> **注意:** +> +> TiDB 监控默认不会持久化数据,为确保数据长期可用,建议[持久化监控数据](monitor-a-tidb-cluster.md#持久化监控数据)。TiDB 监控不包含 Pod 的 CPU、内存、磁盘监控,也没有报警系统。为实现更全面的监控和告警,建议[设置 kube-prometheus 与 AlertManager](monitor-a-tidb-cluster.md#设置-kube-prometheus-与-alertmanager)。 + +## 收集日志 + +系统与程序的运行日志对排查问题和实现自动化操作可能非常有用。TiDB 各组件默认将日志输出到容器的 `stdout` 和 `stderr` 中,并依据容器运行时环境自动进行日志的滚动清理。当 Pod 重启时,容器日志会丢失。为防止日志丢失,建议[收集 TiDB 及相关组件日志](logs-collection.md)。