Replies: 1 comment
-
Query Task Manage Design[TOC] Attach Queryts-sql
sql0: [0, 100000000)
QueryIDInit: If it is a cloud-native scenario, the key in the map needs to be the why: In this way, when ts-meta restarts or the leader changes, the ts-store
Detach Queryts-storeWhen the query task ends, remove the current query from the taskManager. ts-sqlWhen the query task ends, remove the current query from the taskManager. Pay attention: if any errors occur in the query, you still need to remove the query while logging the cause of the error. Show QueriesReturns all queries for the current ts-sql node and all ts-store nodes. Merge the queries of all ts-store nodes according to > show queries
qid query database duration status host
--- ----- ------- -------- ----- -----
100000001 select... db0 10m running all -> all ts-store nodes
200000001 select... db0 20m running 127.0.0.1:8086 -> partion ts-store nodes
200000001 select... db0 20m killed 127.0.0.2:8086,127.0.0.3:8086 -> partion ts-store nodes
Kill Query> kill query 100000001
|
Beta Was this translation helpful? Give feedback.
-
feature list:
1. support for assigning a unique ID to each query
ID range example:
2. support show queries
3. support show queries
Beta Was this translation helpful? Give feedback.
All reactions