On-Demand Compute is in private preview. It is not covered by ClickHouse Cloud SLOs or SLAs, and known and unknown limitations may apply. See Limitations.Join the waitlist.
SELECT queries. You opt a query in using settings, and ClickHouse assigns workers from the pool to execute it through your existing service and endpoint. Background operations are part of the broader capability but are not supported in the private preview.
This differs from compute-compute separation. A warehouse provides dedicated, long-lived compute through multiple services that share data. On-Demand Compute provides temporary workers from a shared pool through your existing service. During the private preview, you request this compute at the query level.
When to use On-Demand Compute
During the private preview, use On-Demand Compute for eligible, compute-intensiveSELECT queries that you want to run outside the primary service’s compute:
- Ad hoc and analyst queries: Run compute-intensive
SELECTqueries on additional workers. - Non-critical read workloads: Move selected reads off the primary service.
- Data lake queries: Query supported Apache Iceberg, Delta Lake, or
SharedMergeTreedata on additional workers. - Temporary additional compute: Request workers for eligible queries without resizing the primary service.
SELECT queries only. Workers do not execute INSERT queries, DDL, mutations, or background operations.
How it works
- You send an eligible
SELECTquery to your ClickHouse Cloud service. Your endpoint, authentication, and RBAC configuration do not change. - The service builds a distributed query plan and requests the specified number of workers from the managed pool.
- ClickHouse assigns available workers to your service.
- The workers execute the plan stages assigned by the distributed planner and read data from supported storage.
- Your service coordinates the query and returns the result to the client.
8 vCPUs and 32 GiB of memory. Use distributed_plan_workers_num to specify how many workers the query requests.
Using On-Demand Compute
Settings
Add these settings on the query, on the user, or in a settings profile.Example
Worker leasing
A worker lease lasts for at least 60 seconds. ClickHouse renews the lease automatically while a query is running. After the query finishes, the workers remain assigned to the service until the lease expires. Another eligible query from the same service can reuse those workers while the lease remains active, so ClickHouse does not need to request new workers. When the lease expires, ClickHouse releases the workers from the service and terminates them. After the query finishes, the three workers stay leased to your tenant but idle until the lease expires. If you send another query while those workers are still leased, they can be reused immediately (no cold start). If the lease has expired, ClickHouse releases the workers back to the pool (they are terminated rather than left idle for another tenant).Concurrent queries
Concurrent queries from the same ClickHouse Cloud service can share assigned workers. ClickHouse requests additional workers only when a query asks for more workers than are already assigned to the service. For example, if two concurrent queries each request three workers, they can share the same three workers. If another query requests five workers, ClickHouse can use the three assigned workers and request two more from the pool. See the example below:When the pool cannot satisfy the request
Worker availability is best effort during the private preview. If fewer workers are available than requested, the query runs with the workers ClickHouse can assign. For example, a request for five workers may run with three. If no worker can be leased, the query fails:Monitoring
Usesystem.query_log on your service to know how many workers were allocated to your query.
Number of allocated workers
Available regions
On-Demand Compute workers run in the same region as your ClickHouse Cloud service. During private preview the feature will initially be available in select cloud providers and regions. As part of the waitlist signup you can specify your preferred provider and region for ClickHouse to evaluate your eligibility.Pricing
During private preview, On-Demand Compute is free, with a usage cap (see Limitations). Ask your ClickHouse account team if you need the cap raised. Pricing will be introduced when the preview ends. Preview participants will be notified before the feature is promoted to beta and before any charges start. The intended model is the same as ClickHouse Cloud compute: pay for compute you use (leased worker time), not for data scanned or rows read.Limitations
The following limitations apply during the private preview. Other limitations may apply. Report unexpected behavior to ClickHouse Support or your account team.SELECTqueries only. Workers do not executeINSERTqueries, mutations, DDL, or background operations.- Supported data. The private preview supports Apache Iceberg, Delta Lake, and
SharedMergeTree. - Parallel replicas. Parallel replicas must be disabled.
- Worker size. Each worker has
8 vCPUsand32 GiBof memory. - Worker limit. Each query can request up to five workers during the private preview.
- Pool capacity. Worker availability is best effort. A query may receive fewer workers than requested. If no workers are available, the query fails.
- Performance. Performance varies by query. Worker assignment, distributed planning, and the transfer of plan stages can add latency. Some query shapes may perform worse than execution on the primary service.
- Query compatibility. The distributed planner cannot execute every query plan remotely. Unsupported queries may return a
SUPPORT_IS_DISABLEDexception.
Roadmap
On-Demand Compute is a foundation. Work in flight or next:- Close known limitations (
SUPPORT_IS_DISABLEDgaps). - Pools of different worker sizes.
- Stabilize query performance compared with stateful execution.
- Background merge support.
- Pricing.
- Worker-pool autoscaler calibration.
- Console metrics and monitoring.
- Dedicated permissions for On-Demand Compute.
Security
On-Demand Compute does not change how you connect to ClickHouse Cloud. Clients still authenticate to your service. Workers never expose a public query endpoint. Dedicated On-Demand roles and permissions are not in the preview (see Roadmap). Until then, anyone who can runSELECT with the settings above on your service can use workers, subject to the preview quota.
FAQ
Is On-Demand Compute open source?
Is On-Demand Compute open source?
No. It is a ClickHouse Cloud architecture: ClickHouse server (distributed plan), data plane (worker pool and leases), and control plane. The experimental
make_distributed_plan setting exists in ClickHouse, but the shared worker pool and stateless execution is Cloud-only.Do I need a specific version to join the private preview?
Do I need a specific version to join the private preview?
Yes. Your ClickHouse team will confirm whether your service requires an upgrade before joining the private preview. Additional upgrades may be required during the preview.
What will pricing look like?
What will pricing look like?
There is no additional charge during the private preview, subject to preview limits. Pricing for later release stages will be shared before any charges apply. That said, pricing holds the same philosophy as ClickHouse Cloud: charge for compute used, not for data scanned or rows read. Exact rates will be published before GA or beta billing starts.
Can I use this for production?
Can I use this for production?
You can run real workloads, but this is a private preview: there are known and unknown limitations, and there is no SLO/SLA for worker-pool availability. ClickHouse is committed to supporting early adopters; treat it as preview, not as a production guarantee.
How is this different from autoscaling my service?
How is this different from autoscaling my service?
Autoscaling changes the compute assigned to your primary service. During the private preview, On-Demand Compute gives eligible
SELECT queries temporary access to workers from a managed pool without changing the size of the primary service. Autoscaling manages ongoing service capacity, while On-Demand Compute provides temporary compute for specific workloads.How is this different from a warehouse or compute-compute separation?
How is this different from a warehouse or compute-compute separation?
Compute-compute separation provides dedicated compute through multiple ClickHouse Cloud services that share data. On-Demand Compute provides temporary compute from a managed pool through your existing service. During the private preview, this compute is requested at the query level. The broader capability is designed to support both query execution and background operations.
Where can I ask questions?
Where can I ask questions?
Ask your account team; they will introduce you to the product manager for On-Demand Compute.
Where can I report bugs?
Where can I report bugs?
Open a support ticket (severity 3) or report it to the product manager. Include
query_id and the full exception.Is this available in ClickHouse BYOC or ClickHouse Private?
Is this available in ClickHouse BYOC or ClickHouse Private?
No. The private preview is not available in ClickHouse BYOC or ClickHouse Private.