ISSUES-2688 support on cluster for kill & optimize query#2689
ISSUES-2688 support on cluster for kill & optimize query#2689alexey-milovidov merged 2 commits intoClickHouse:masterfrom
Conversation
|
Ok, but the purpose remains unclear. |
|
I think this feature is very useful. It was less convenient, because we must modify the hosts variable each time we do cluster expansion. |
|
@sundy-li doesn't your company have some infrastructure to execute arbitrary command in parallel on a tagged subset of servers via ssh? If it does, than such stuff is easily done just by querying localhost with clickhouse-client or curl. |
|
Thank you! KILL on cluster is indeed useful. By the way, if you have a distributed query (that generate many queries on cluster nodes), and if you KILL just the initiating query, all generated queries will also be killed. About OPTIMIZE. In many cases excessive OPTIMIZE (especially with FINAL) may be harmful, because it will initiate huge merge, that can fill a queue for merges and prevent other merges to run. This feature should be used with caution. |
#2688
cc @sundy-li
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en