Skip to content

Streamline the controls over background activity of certain table engines #102707

Closed

Description

@nikitamikhaylov

Company or project name

ClickHouse Inc.

Use case

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

For Refreshable Materialized Views we should alias existing commands and support CANCEL .

Additionally there should be wildcard queries

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

Additional context

No response

Activity

  1. added
    warmup task
    on Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurewarmup task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions