Preview

Serverless compute for Delta Live Tables is in Public Preview.

Configure a serverless Delta Live Tables pipeline

This article describes configurations for serverless Delta Live Tables pipelines.

Databricks recommends developing new pipelines using serverless. Some workloads might require configuring classic compute or working with the legacy Hive metastore. See Configure compute for a Delta Live Tables pipeline and Use Delta Live Tables pipelines with legacy Hive metastore.

Note

  • Serverless pipelines always use Unity Catalog. Unity Catalog for Delta Live Tables is in Public Preview and has some limitations. See Use Unity Catalog with your Delta Live Tables pipelines.

  • You cannot manually add compute settings in a clusters object in the JSON configuration for a serverless pipeline. Attempting to do so results in an error.

  • For information on eligibility and enablement for serverless DLT pipelines, see Enable serverless compute.

Requirements

  • Your workspace must have Unity Catalog enabled to use serverless pipelines.

Other configuration considerations

The following configuration options are also available for serverless pipelines:

Budget policy

Preview

This feature is in Public Preview.

Budget policies allow your organization to apply custom tags on serverless usage for granular billing attribution. After you select the Serverless checkbox, the Budget policy setting appears where you can select the policy you want to apply to the pipeline. The tags are inherited from the budget policy and can only be edited by workspace admins.

Note

After you’ve been assigned a budget policy, your existing pipelines are not automatically tagged with your policy. You must manually update existing pipelines if you want to attach a policy to them.

For more on budget policies, see Attribute serverless usage with budget policies.

Serverless pipeline features

In addition to simplifying configuration, serverless pipelines have the following features:

  • Stream pipelining: To improve utilization, throughput, and latency for streaming data workloads such as data ingestion, microbatches are pipelined. In other words, instead of running microbatches sequentially like standard Spark Structured Streaming, serverless DLT pipelines runs microbatches concurrently, improving compute resource utilization. Stream pipelining is enabled by default in serverless DLT pipelines.

  • Vertical autoscaling: serverless DLT pipelines adds to the horizontal autoscaling provided by Databricks enhanced autoscaling by automatically allocating the most cost-efficient instance types that can run your Delta Live Tables pipeline without failing because of out-of-memory errors. See What is vertical autoscaling?

What is vertical autoscaling?

Serverless DLT pipelines vertical autoscaling automatically allocates the most cost-efficient available instance types to run your Delta Live Tables pipeline updates without failing because of out-of-memory errors. Vertical autoscaling scales up when larger instance types are required to run a pipeline update and also scales down when it determines that the update can be run with smaller instance types. Vertical autoscaling determines whether driver nodes, worker nodes, or both driver and worker nodes should be scaled up or down.

Vertical autoscaling is used for all serverless DLT pipelines, including pipelines used by Databricks SQL materialized views and streaming tables.

Vertical autoscaling works by detecting pipeline updates that have failed because of out-of-memory errors. Vertical autoscaling allocates larger instance types when these failures are detected based on the out-of-memory data collected from the failed update. In production mode, a new update that uses the new compute resources is started automatically. In development mode, the new compute resources are used when you manually start a new update.

If vertical autoscaling detects that the memory of the allocated instances is consistently underutilized, it will scale down the instance types to use in the next pipeline update.

Convert an existing pipeline to use serverless

You can convert existing pipelines configured with Unity Catalog to serverless pipelines. Complete the following steps:

  1. Click Delta Live Tables in the sidebar.

  2. Click the name of the desired pipeline in the list.

  3. Click Settings.

  4. Check the box next to Serverless.

  5. Click Save and start.

Important

When you enable serverless, any compute settings you have configured for a pipeline are removed. If you switch a pipeline back to non-serverless updates, you must reconfigure the desired compute settings to the pipeline configuration.

How can I find the DBU usage of a serverless pipeline?

You can find the DBU usage of serverless DLT pipelines by querying the billable usage table, part of the Databricks system tables. See What is the DBU consumption of a serverless DLT pipeline?.