Serverless compute for notebooks
Important
This feature is in Public Preview. For information on eligibility and enablement, see Enable serverless compute public preview.
This article explains how to use serverless compute for notebooks. For information on using serverless compute for workflows, see Run your Azure Databricks job with serverless compute for workflows.
For pricing information, see Databricks pricing.
Requirements
- Your workspace must be in a supported region. See Azure Databricks regions.
- Your workspace must be enabled for Unity Catalog.
- Your workspace must be enabled for the Public Preview.
Using serverless compute for notebooks
If your workspace is enabled for serverless interactive compute, all users in the workspace have access to serverless compute for notebooks. No additional permissions are required.
To attach to the serverless compute, click the Connect drop-down menu in the notebook and select Serverless. For new notebooks, the attached compute automatically defaults to serverless upon code execution if no other resource has been selected.
View query insights
Serverless compute for notebooks and workflows uses query insights to assess Spark execution performance. After running a cell in a notebook, you can view insights related to SQL and Python queries by clicking the See performance link.
You can click on any of the Spark statements to view the query metrics. From there you can click See query profile to see a visualization of the query execution. For more information on query profiles, see Query profile.
Query history
All queries that are run on serverless compute will also be recorded on your workspace’s query history page. For information on query history, see Query history.
Query insight limitations
- The query profile is only available after the query execution terminates.
- Metrics are updated live although the query profile is not shown during execution.
- Only the following query statuses are covered: RUNNING, CANCELED, FAILED, FINISHED.
- Running queries cannot be canceled from the query history page. They can be canceled in notebooks or jobs.
- Verbose metrics are not available.
- Query Profile download is not available.
- Access to the Spark UI is not available.
- The statement text only contains the last line that was run. However, there might be several lines preceding this line that were run as part of the same statement.
Limitations
For a list of limitations, see Serverless compute limitations.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for