Sub topic 3
Control plane and compute plane
This chapter assumes you know what cloud object storage and virtual machines are, and that you have read the earlier chapters on the lakehouse and the platform overview. Here you will learn how Databricks splits into two parts, and where your code and your data actually run.
The two planes
Databricks divides its architecture into a control plane and a compute plane.
- The control plane is the backend that Databricks operates in its own cloud account. It hosts the web application, the notebook and job definitions, the cluster manager, and workspace metadata. Unity Catalog's metadata and permissions are also managed here.
- The compute plane is where data is processed. Clusters and SQL warehouses run here as virtual machines.
There are two kinds of compute plane:
| Compute plane | Where it runs | Typical compute |
|---|---|---|
| Classic | In your own cloud account and network | All-purpose clusters, job clusters, classic SQL warehouses |
| Serverless | In a Databricks-managed account | Serverless SQL warehouses, serverless notebooks and jobs |
With classic compute, the virtual machines sit in your cloud account, so you control the network around them. With serverless compute, Databricks manages the machines and starts them quickly, but you control less of the network setup.
What happens when you run a notebook cell
Your code is stored in the control plane, but it runs on compute in the compute plane. The compute reads the table files directly from your cloud storage. Your data does not pass through the control plane for processing. Only results, such as the rows shown by display, return to your browser through it.
Where data lives
Table data stays in object storage that belongs to your cloud account. Delta tables are files in that storage. Some items live in the control plane instead: notebook source, job settings, query history, and the metadata that describes your tables. The main.tutorial.orders table you create in a later chapter has its files in your storage, while its name and permissions are metadata in Unity Catalog.
Why the split matters
- Security review. Teams can state which components sit in their own network and which are managed by the vendor.
- Networking. Classic compute needs network rules that allow it to reach the control plane and your storage. Misconfigured rules are a common reason a cluster fails to start.
- Cost and startup. Classic clusters bill you for cloud virtual machines as well as Databricks usage. Serverless startup is faster, and its pricing is bundled.
- Upgrades. Databricks updates the control plane without any action from you.
Common mistakes
- Assuming that notebooks run in the control plane. They are stored there, but they execute on attached compute.
- Assuming that data is copied into Databricks. The data stays in your storage, and compute reads it in place.
- Treating "serverless" as meaning no compute exists. It means someone else manages the machines.
Exercise
A teammate's notebook shows a result in the browser. State which plane stored the notebook code, which plane ran the query, and where the table files were read from.
Show answer
The control plane stored the notebook code. The compute plane (a cluster or SQL warehouse) ran the query. The table files were read from object storage in your cloud account, and only the results went back through the control plane to the browser.
Exercise
What is the main difference between classic and serverless compute planes?
Show answer
Classic compute runs in your own cloud account and network, so you manage more of the setup. Serverless compute runs in a Databricks-managed account, which gives faster startup and less configuration but less network control.