You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Mutations of MergeTree tables and their progress.
72
72
73
73
Queries:
74
-
- Longest running queries.
74
+
- Longest running queries;
75
+
- Queries by memory consumption.
75
76
76
77
System activity (from system.metric_log table):
77
78
- last 14 days;
@@ -99,13 +100,13 @@ Activity:
99
100
100
101
As user **root**, download the latest version of the scripts collection (see [Releases](https://github.com/Azmodey/ch_dba_scripts/releases) page):
echo"Queries that is being processed. Ordered by elapsed time:"
341
362
echo"- full SQL text by query_id: SELECT distinct query FROM system.query_log WHERE query_id='' FORMAT TabSeparatedRaw"
342
-
echo"- kill: KILL QUERY WHERE query_id='2-857d-4a57-9ee0-327da5d60a90'"
343
-
echo"- kill: KILL QUERY WHERE user='username' SYNC"
363
+
echo"- kill by query_id: KILL QUERY WHERE query_id=''"
364
+
echo"- kill all queries by user: KILL QUERY WHERE user='' SYNC"
344
365
clickhouse-client --query "SELECT elapsed as time_seconds, formatReadableSize(memory_usage) as memory, formatReadableSize(read_bytes) as read, read_rows, total_rows_approx as total_rows, user, address as client, query_id, substring(query,1,48) as query
0 commit comments