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
{{ message }}
Repository navigation
Streamline the controls over background activity of certain table engines #102707
ClickHouse has lots of engines with a background periodic activity (queue / object storage polling, refreshes, etc). The end user or a system admin should be able to control it.
Describe the solution you'd like
Every table with a background activity (Kafka, S3Queue, RabbitMQ, NATS or Refreshable Materialized View) the following system commands should be supported.
SYSTEM STOP table; -- interrupt the current refresh/polling and stop further activity.
SYSTEM PAUSE table; -- stop further activity;
SYSTEM CANCEL table; -- interrupt the current refresh/polling
SYSTEM REFRESH table; -- kick off a refresh / polling out of order
SYSTEM STOP ALL BACKGROUND; -- interrupt the current refresh/polling and stop further activity.
SYSTEM PAUSE ALL BACKGROUND; -- stop further activity;
SYSTEM CANCEL ALL BACKGROUND; -- interrupt the current refresh/polling
SYSTEM REFRESH ALL BACKGROUND; -- kick off a refresh / polling out of order
Every command should be covered by ClickHouse RBAC permissions.
Describe alternatives you've considered
Do it only for RMV, e.g. add a CANCEL query. Some ideas were described here: #102623
Activity