01Chapter 1: How a Databricks cluster is builtA Databricks cluster is a set of virtual machines that run one Spark application together. Every sizing decision in later chapters depends on what each machine does and how its resources become units of parallel work. This chapter covers that structure.5 min read
02Chapter 2: Matching the cluster to the workloadA cluster that suits one job can be slow or wasteful for another. This chapter covers the four common workload profiles (ETL, interactive, machine learning, and BI), what each one asks of a cluster, and how that shapes your first sizing decision. It assumes you know Spark jobs, stages, tasks, and pa5 min read
03Chapter 3: Choosing node types and instance familiesThis chapter assumes you know the driver and worker roles in a Databricks cluster, basic Spark concepts (jobs, stages, tasks, partitions, shuffles), and the difference between on-demand and spot virtual machines. Examples use AWS instance names. Azure and Google Cloud offer equivalent families under5 min read
04Chapter 4: Cores, memory, and partitionsThis chapter assumes you know the basic Spark vocabulary: jobs, stages, tasks, partitions, and shuffles. It also assumes you can run a notebook on a Databricks cluster. The goal is to connect the cluster's cores and memory to the number of partitions Spark processes at once, because that link decide5 min read
05Chapter 5: What a cluster costs: DBUs and infrastructureThis chapter assumes you know what a Databricks cluster is, how a driver and workers map to Spark executors, and the difference between on-demand and spot instances. It builds the cost model that the later chapters on autoscaling, spot instances, auto-termination, and policies depend on.6 min read
06Chapter 6: Picking a starting size for a fixed clusterThis chapter assumes you know Spark jobs, stages, tasks, partitions, and shuffles. It also assumes you can run notebooks and jobs in Databricks, and that you know what a cloud instance type is. By the end you will be able to turn a data volume and a node type into a first cluster size, and you will 6 min read
07Chapter 7: How autoscaling worksThis chapter assumes you know Spark jobs, stages, tasks, and shuffles. It also assumes you can run notebooks or jobs in a Databricks workspace and know the difference between on-demand and spot instances. You should already have a starting size for a fixed cluster from the previous chapter.6 min read
08Chapter 8: Setting minimum and maximum workersThis chapter assumes you know how autoscaling adds and removes workers (covered in the previous chapter). It also assumes you can read Spark job, stage, and task metrics, and that you know how a shuffle moves data between workers. Here you will learn how to pick the two numbers that bound an autosca6 min read
09Chapter 9: When not to autoscale: streaming and other limitsThis chapter assumes you know the basics of Spark jobs, stages, tasks and partitions. It also assumes you have read the previous chapters on how autoscaling works and how to choose minimum and maximum worker counts. Autoscaling suits many batch and interactive workloads. It fits poorly with some oth5 min read
10Chapter 10: Stopping idle clusters automaticallyThis chapter assumes you know how to create a Databricks cluster, you understand the DBU-plus-infrastructure cost model from the earlier chapter, and you have used the Clusters API or the cluster UI. Auto-termination is the simplest cost control available. It is also easy to misconfigure, so this ch5 min read
11Chapter 11: Using spot instances safelyThis chapter assumes you know Spark stages, tasks, and shuffles. It also assumes you know the difference between on-demand and spot pricing in a cloud provider, and that you can read a Databricks cluster specification in JSON. By the end you should be able to decide which clusters can use spot worke6 min read
12Chapter 12: Instance pools to shorten startupThis chapter covers what an instance pool is, how it changes startup and cost, and how to configure one alongside autoscaling. It assumes you know how a cluster is built from a driver and workers, how autoscaling adds and removes workers, and the difference between on-demand and spot instances. Earl5 min read
13Chapter 13: Enforcing limits with cluster policiesThis chapter assumes you know how to create a Databricks cluster from the UI or the Clusters API. It also assumes you have read the earlier chapters on autoscaling bounds and auto-termination. Here you will see how an administrator turns those settings into rules that users cannot override by accide5 min read
14Chapter 14: Photon and the runtime engine settingThis chapter assumes you know how a cluster is built (driver, workers, executors) and how Databricks bills a cluster as DBUs plus cloud infrastructure. It also assumes you can read a Spark query plan at a basic level. Here you will learn what Photon changes, what it does not change, and how to decid5 min read
15Chapter 15: Reading utilization in the Spark UI and metricsThis chapter assumes you know Spark jobs, stages, tasks, partitions, and shuffles. It also assumes you can run a notebook or job on Databricks. You should know how the driver, workers, executors, and task slots relate. Sizing starts as a guess. Measurement tells you whether the guess was right, and 6 min read
16Chapter 16: Tuning size with a measure-and-adjust loopThis chapter assumes you know Spark jobs, stages, tasks, partitions, and shuffles. It also assumes you can run a notebook or job in a Databricks workspace and understand the cost split between DBUs and cloud instances, covered in earlier chapters.5 min read
17Chapter 17: Serverless compute and when it replaces manual sizingThis chapter assumes you know the cluster concepts from earlier in this tutorial: driver and workers, autoscaling bounds, auto-termination, spot instances, instance pools, and cluster policies. It also assumes you have run notebooks and jobs in a Databricks workspace.5 min read