PingCAPクリニック診断データ
このドキュメントでは、 TiUP を使用して展開された TiDB および DM クラスターからPingCAPクリニック Diagnostic Service (PingCAPクリニック ) によって収集できる診断データの種類について説明します。また、ドキュメントには、各データの種類に対応するデータ収集のパラメータがリストされています。 Diagクライアント(Diag)を使用してデータを収集するのコマンドを実行するときに、収集するデータの種類に応じて、必要なパラメータをコマンドに追加できます。
PingCAPクリニックによって収集された診断データは、クラスターの問題のトラブルシューティングにのみ使用されます。
クラウドに展開される診断サービスである Clinic Server は、データのstorage場所に応じて 2 つの独立したサービスを提供します。
- 海外ユーザー向けクリニックサーバー : 収集したデータを国際ユーザー向けの Clinic Server にアップロードすると、データは PingCAP が AWS US リージョンに展開した Amazon S3 サービスに保存されます。PingCAP は厳格なデータ アクセス ポリシーを使用しており、承認されたテクニカル サポートのみがデータにアクセスできます。
- 中国本土のユーザー向けクリニックサーバー : 収集したデータを中国本土のユーザー向けの Clinic Server にアップロードすると、データは PingCAP が中国 (北京) リージョンに展開した Amazon S3 サービスに保存されます。PingCAP は厳格なデータ アクセス ポリシーを使用しており、承認されたテクニカル サポートのみがデータにアクセスできます。
TiDB クラスター
このセクションでは、 TiUPを使用してデプロイされた TiDB クラスターから診断によって収集できる診断データの種類を示します。
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| クラスターIDを含むクラスターの基本情報 | cluster.json | デフォルトでは、データは実行ごとに収集されます。 |
| クラスターの詳細情報 | meta.yaml | デフォルトでは、データは実行ごとに収集されます。 |
TiDB診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | tidb.log | --include=log |
| エラーログ | tidb_stderr.log | --include=log |
| スローログ | tidb_slow_query.log | --include=log |
| コンフィグレーションファイル | tidb.toml | --include=config |
| リアルタイム構成 | config.json | --include=config |
TiKV診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | tikv.log | --include=log |
| エラーログ | tikv_stderr.log | --include=log |
| コンフィグレーションファイル | tikv.toml | --include=config |
| リアルタイム構成 | config.json | --include=config |
PD診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | pd.log | --include=log |
| エラーログ | pd_stderr.log | --include=log |
| コンフィグレーションファイル | pd.toml | --include=config |
| リアルタイム構成 | config.json | --include=config |
コマンドtiup ctl:v<CLUSTER_VERSION> pd -u http://${pd IP}:${PORT} storeの出力 | store.json | --include=config |
コマンドtiup ctl:v<CLUSTER_VERSION> pd -u http://${pd IP}:${PORT} config placement-rules showの出力 | placement-rule.json | --include=config |
TiFlash診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | tiflash.log | --include=log |
| エラーログ | tiflash_stderr.log | --include=log |
| コンフィグレーションファイル | tiflash-learner.toml tiflash-preprocessed.toml tiflash.toml | --include=config |
| リアルタイム構成 | config.json | --include=config |
TiCDC診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | ticdc.log | --include=log |
| エラーログ | ticdc_stderr.log | --include=log |
| コンフィグレーションファイル | ticdc.toml | --include=config |
| デバッグデータ | info.txt status.txt changefeeds.txt captures.txt processors.txt | --include=debug (Diag はデフォルトではこのデータ タイプを収集しません) |
プロメテウス監視データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| すべての指標データ | {metric_name}.json | --include=monitor |
| すべてのアラートデータ | alerts.json | --include=monitor |
TiDB システム変数
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| TiDB システム変数 | mysql.tidb.csv | --include=db_vars (Diag はデフォルトではこのデータ タイプを収集しません。このデータ タイプを収集する必要がある場合は、データベース資格情報が必要です) |
| global_variables.csv | --include=db_vars (Diag はデフォルトではこのデータ タイプを収集しません) |
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| カーネルログ | dmesg.log | --include=system |
| システムとハードウェアの基本情報 | insight.json | --include=system |
/etc/security/limits.confの内容 | limits.conf | --include=system |
| カーネルパラメータのリスト | sysctl.conf | --include=system |
ソケットシステム情報( ssコマンドの出力) | ss.txt | --include=system |
DM クラスター
このセクションでは、 TiUPを使用して展開された DM クラスターから Diag によって収集できる診断データの種類を示します。
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| クラスターIDを含むクラスターの基本情報 | cluster.json | デフォルトでは、データは実行ごとに収集されます。 |
| クラスターの詳細情報 | meta.yaml | デフォルトでは、データは実行ごとに収集されます。 |
dm-master診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | dm-master.log | --include=log |
| エラーログ | dm-master_stderr.log | --include=log |
| コンフィグレーションファイル | dm-master.toml | --include=config |
dm-worker 診断データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| ログ | dm-worker.log | --include=log |
| エラーログ | dm-worker_stderr.log | --include=log |
| コンフィグレーションファイル | dm-work.toml | --include=config |
Prometheus 監視データ
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| すべての指標データ | {metric_name}.json | --include=monitor |
| すべてのアラートデータ | alerts.json | --include=monitor |
| データ型 | エクスポートされたファイル | PingCAPクリニックによるデータ収集のパラメータ |
|---|
| カーネルログ | dmesg.log | --include=system |
| システムとハードウェアの基本情報 | insight.json | --include=system |
/etc/security/limits.confシステムの内容 | limits.conf | --include=system |
| カーネルパラメータのリスト | sysctl.conf | --include=system |
ソケットシステム情報( ssコマンドの出力) | ss.txt | --include=system |