forked from StarRocks/starrocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiagnostics.sql
More file actions
23 lines (19 loc) · 933 Bytes
/
Copy pathdiagnostics.sql
File metadata and controls
23 lines (19 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- diagnostics.sql
-- This script collects key system information to help diagnose
-- and troubleshoot performance issues.
-- This data can help identify system bottlenecks,
-- debug problems, and guide optimization efforts.
-- example:
-- cat diagnostics.sql | mysql -h127.0.0.1 -P9030 -uroot |gzip > diagnostics.gz
show frontends\G;
show backends\G;
show variables\G;
admin show frontend config\G;
select * from information_schema.loads\G;
select * from information_schema.routine_load_jobs\G;
select * from information_schema.be_metrics\G;
select * from information_schema.be_bvars\G;
select * from information_schema.be_cloud_native_compactions\G;
select BE_ID, NAME, VALUE from information_schema.be_configs\G;
show proc '/compactions'\G;
select BE_ID, LOG from (select BE_ID, TIMESTAMP, LOG from information_schema.be_logs where LEVEL='W' or LEVEL='E' order by TIMESTAMP DESC limit 5000) t order by BE_ID, TIMESTAMP ASC;