tools/starrocks-diagnostics/README.md
The CelerData Doctor script is a comprehensive diagnostic tool designed for StarRocks clusters. It collects critical metadata and performance indicators from StarRocks clusters, providing valuable insights for troubleshooting, optimization, and capacity planning.
.tar.gz file for easy sharing with support teams.summary.txt for rapid assessment.pip3 install mysql-connector-python
Make sure the following libraries are installed:
import mysql.connector
import os
import csv
from datetime import datetime
import tarfile
import shutil
git clone <REPO_URL>
cd celerdata-doctor
Run the script:
./celerdata-doctor.py
You will be prompted for the following connection details:
127.0.0.1)9030)root)Example:
Enter StarRocks host (default: 127.0.0.1):
Enter StarRocks port (default: 9030):
Enter StarRocks username (default: root):
Enter StarRocks password:
✅ Connected to StarRocks
After execution, the script will generate a compressed file like:
starrocks_metadata_<timestamp>.tar.gz
Extracting this archive reveals:
starrocks_metadata_<timestamp>/
├── default_catalog/
│ ├── <database>/
│ │ ├── tables.txt
│ │ ├── <table>.sql
│ │ ├── <table>_partitions.csv
│ │ └── <table>_tablets.csv
└── performance_indicators/
├── backends.csv
├── frontends.csv
├── compute_nodes.csv
├── cluster_architecture.txt
├── oversized_tablets.csv
├── too_many_tablets.csv
├── data_skew.csv
├── partition_data_skew.csv
├── empty_tables.csv
├── empty_partitions.csv
├── replication_check.csv
└── summary.txt
information_schema (requires appropriate StarRocks version).Contributions are welcome! Please submit pull requests or open issues on GitHub.
Apache License, Version 2.0