Skip to content

Commit 388e84c

Browse files
authored
PingCAP Clinic: update contents for v6.0 (#8035)
1 parent 0b5e6c0 commit 388e84c

File tree

5 files changed

+94
-73
lines changed

5 files changed

+94
-73
lines changed

TOC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
- [tiup-cluster](/tiup/tiup-cluster.md)
195195
- [tiup-mirror](/tiup/tiup-mirror.md)
196196
- [tiup-bench](/tiup/tiup-bench.md)
197-
- PingCAP Clinic Diagnostic Service (Beta)
197+
- PingCAP Clinic Diagnostic Service (Technical Preview)
198198
- [Overview](/clinic/clinic-introduction.md)
199199
- [Use PingCAP Clinic](/clinic/clinic-user-guide-for-tiup.md)
200200
- [PingCAP Clinic Diagnostic Data](/clinic/clinic-data-instruction-for-tiup.md)

clinic/clinic-data-instruction-for-tiup.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ summary: Learn what diagnostic data can be collected by PingCAP Clinic Diagnosti
55

66
# PingCAP Clinic Diagnostic Data
77

8-
This document provides the types of diagnostic data that can be collected by PingCAP Clinic Diagnostic Service (PingCAP Clinic) from the TiDB and DM clusters deployed using TiUP. Also, the document lists the parameters for data collection corresponding to each data type. When running a command to [collect data using the Clinic Diag tool (Diag)](/clinic/clinic-user-guide-for-tiup.md), you can add the required parameters to the command according to the types of the data to be collected.
8+
This document provides the types of diagnostic data that can be collected by PingCAP Clinic Diagnostic Service (PingCAP Clinic) from the TiDB and DM clusters deployed using TiUP. Also, the document lists the parameters for data collection corresponding to each data type. When running a command to [collect data using Diag client (Diag)](/clinic/clinic-user-guide-for-tiup.md), you can add the required parameters to the command according to the types of the data to be collected.
99

1010
The diagnostic data collected by PingCAP Clinic is **only** used for troubleshooting cluster problems.
1111

12-
Set up on the PingCAP intranet (in China), the Clinic Server is a cloud service deployed in the cloud. If you upload the collected diagnostic data to the Clinic Server for PingCAP technical support staff to troubleshoot cluster problems remotely, the uploaded data is stored in the AWS S3 China (Beijing) Region server set up by PingCAP. PingCAP strictly controls permissions for data access and only allows authorized in-house technical support staff to access the uploaded data.
12+
Clinic Server is a diagnostic service deployed in the cloud. Currently, you can upload the collected diagnostic data to [Clinic Server China](https://clinic.pingcap.com.cn) only. The uploaded data is stored in the AWS S3 China (Beijing) region server set up by PingCAP. Clinic Server Global will be provided soon with a new URL and data storage location. For details, see [PingCAP Clinic components](/clinic/clinic-introduction.md).
13+
14+
PingCAP strictly controls permissions for data access and only allows authorized in-house technical support staff to access the uploaded data.
1315

1416
After a technical support case is closed, PingCAP permanently deletes or anonymizes the corresponding data within 90 days.
1517

@@ -33,6 +35,7 @@ This section lists the types of diagnostic data that can be collected by Diag fr
3335
| Slow log | `tidb_slow_query.log` | `--include=log` |
3436
| Configuration file | `tidb.toml` | `--include=config` |
3537
| Real-time configuration | `config.json` | `--include=config` |
38+
| Performance data | `cpu_profile.proto`, `mem_heap.proto`, `goroutine.txt`, `mutex.txt` | `--include=perf` |
3639

3740
### TiKV diagnostic data
3841

@@ -42,6 +45,7 @@ This section lists the types of diagnostic data that can be collected by Diag fr
4245
| Error log | `tikv_stderr.log` | `--include=log` |
4346
| Configuration file | `tikv.toml` | `--include=config` |
4447
| Real-time configuration | `config.json` | `--include=config` |
48+
| Performance data | `cpu_profile.proto` | `--include=perf` |
4549

4650
### PD diagnostic data
4751

@@ -53,6 +57,7 @@ This section lists the types of diagnostic data that can be collected by Diag fr
5357
| Real-time configuration | `config.json` | `--include=config` |
5458
| Outputs of the command `tiup ctl pd -u http://${pd IP}:${PORT} store` | `store.json` | `--include=config` |
5559
| Outputs of the command `tiup ctl pd -u http://${pd IP}:${PORT} config placement-rules show` | `placement-rule.json` | `--include=config` |
60+
| Performance data | `cpu_profile.proto`, `mem_heap.proto`, `goroutine.txt`, `mutex.txt` | `--include=perf` |
5661

5762
### TiFlash diagnostic data
5863

@@ -62,6 +67,7 @@ This section lists the types of diagnostic data that can be collected by Diag fr
6267
| Error log | `tiflash_stderr.log` | `--include=log` |
6368
| Configuration file | `tiflash-learner.toml``tiflash-preprocessed.toml``tiflash.toml` | `--include=config` |
6469
| Real-time configuration | `config.json` | `--include=config` |
70+
| Performance data | `cpu_profile.proto` | `--include=perf` |
6571

6672
### TiCDC diagnostic data
6773

@@ -70,6 +76,8 @@ This section lists the types of diagnostic data that can be collected by Diag fr
7076
| Log | `ticdc.log` | `--include=log`|
7177
| Error log | `ticdc_stderr.log` | `--include=log` |
7278
| Configuration file | `ticdc.toml` | `--include=config` |
79+
| Performance data | `cpu_profile.proto`, `mem_heap.proto`, `goroutine.txt`, `mutex.txt` | `--include=perf` |
80+
| Debug data | `info.txt`, `status.txt`, `changefeeds.txt`, `captures.txt`, `processors.txt` | `--include=debug` |
7381

7482
### Prometheus monitoring data
7583

clinic/clinic-introduction.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@ summary: Learn about the PingCAP Clinic Diagnostic Service (PingCAP Clinic), inc
77

88
PingCAP Clinic Diagnostic Service (PingCAP Clinic) is a diagnostic service provided by PingCAP for TiDB clusters that are deployed using either TiUP or TiDB Operator. This service helps to troubleshoot cluster problems remotely and provides a quick check of cluster status locally. With PingCAP Clinic, you can ensure the stable operation of your TiDB cluster for its full life-cycle, predict potential problems, reduce the probability of problems, troubleshoot cluster problems quickly, and fix cluster problems.
99

10-
PingCAP Clinic is currently in the Beta testing stage for invited users only. This service provides the following two components to diagnose cluster problems:
10+
PingCAP Clinic is currently in the Technical Preview stage. This service provides the following two components to diagnose cluster problems:
1111

12-
- Diag: a diagnostic tool deployed on the cluster side. Diag is used to collect cluster diagnostic data, upload diagnostic data to the Clinic Server, and perform a quick health check locally on your cluster. For a full list of diagnostic data that can be collected by Diag, see [PingCAP Clinic Diagnostic Data](/clinic/clinic-data-instruction-for-tiup.md).
12+
- Diag client:
13+
14+
Diag client (Diag) is a diagnostic tool deployed on the cluster side. Diag is used to collect cluster diagnostic data, upload diagnostic data to the Clinic Server, and perform a quick health check locally on your cluster. For a full list of diagnostic data that can be collected by Diag, see [PingCAP Clinic Diagnostic Data](/clinic/clinic-data-instruction-for-tiup.md).
1315

1416
> **Note:**
1517
>
16-
> - Diag temporarily **does not support** collecting data from the clusters deployed using TiDB Ansible.
17-
> - For the PingCAP Clinic Beta version, if you want to upload data to the Clinic Server for remote troubleshooting using Diag, you need to contact [PingCAP technical support](https://en.pingcap.com/contact-us/) to get a trial account first.
18+
> Diag temporarily **does not support** collecting data from the clusters deployed using TiDB Ansible.
1819
19-
- Clinic Server: a cloud service deployed in the cloud. By providing diagnostic services in the SaaS model, the Clinic Server can not only receive uploaded diagnostic data but also work as an online diagnostic environment to store data, view data, and provide cluster diagnostic reports.
20+
- Clinic Server:
2021

21-
> **Note:**
22-
>
23-
> For the PingCAP Clinic Beta version, the features of the Clinic Server are **not** open for external users. After you upload collected data to the Clinic Server and get a data link using Diag, only authorized PingCAP technical support staff can access the link and view the data.
22+
Clinic Server is a cloud service deployed in the cloud. By providing diagnostic services in the SaaS model, the Clinic Server can not only receive uploaded diagnostic data but also work as an online diagnostic environment to store data, view data, and provide cluster diagnostic reports.
23+
24+
Currently, you can upload the collected diagnostic data to [Clinic Server China](https://clinic.pingcap.com.cn) only. The uploaded data is stored in the AWS S3 China (Beijing) region server set up by PingCAP. Clinic Server Global will be provided soon with a new URL and data storage location in one of the AWS S3 regions in North America.
2425

2526
## User scenarios
2627

@@ -30,11 +31,11 @@ PingCAP Clinic is currently in the Beta testing stage for invited users only. Th
3031

3132
- Perform a quick check on the cluster status locally
3233

33-
Even if your cluster runs stably now, it is necessary to periodically check the cluster to avoid potential stability risks. You can check the potential health risks of a cluster using the local quick check feature provided by PingCAP Clinic. The PingCAP Clinic Beta version provides a rationality check on cluster configuration items to discover unreasonable configurations and provide modification suggestions.
34+
Even if your cluster runs stably now, it is necessary to periodically check the cluster to avoid potential stability risks. You can check the potential health risks of a cluster using the local quick check feature provided by PingCAP Clinic. The PingCAP Clinic Technical Preview version provides a rationality check on cluster configuration items to discover unreasonable configurations and provide modification suggestions.
3435

3536
## Implementation principles
3637

37-
This section introduces the implementation principles about how Diag (a cluster-side tool provided by PingCAP Clinic) collects diagnostic data from a cluster.
38+
This section introduces the implementation principles about how Diag collects diagnostic data from a cluster.
3839

3940
First, Diag gets cluster topology information from the deployment tool TiUP (tiup-cluster) or TiDB Operator (tidb-operator). Then, Diag collects different types of diagnostic data through various data collection methods as follows:
4041

0 commit comments

Comments
 (0)