Skip to content

Compute Profiles ​

A compute profile is a saved answer to a question every workload asks: what machine should this run on? You pick the cluster and the engine size once, give it a name, and then point jobs, sessions, and notebooks at it instead of configuring each one by hand. What the code needs, such as libraries and catalogs, is in a runtime profile.

In the UI, compute profiles live under Compute → Compute Profiles.

Why profiles exist ​

Jobs, sessions, and notebooks all need the same thing: a cluster to run on and a description of how big the Sail engine should be. Rather than repeat that on every workload, a profile captures it once so you can:

  • Standardize sizing. "small", "interactive", and "etl-large" become shared, named choices instead of per-workload guesses.
  • Change compute without touching the workload. Edit the compute profile; the next new job run and notebook start that use it take the new sizing. See Editing and deleting.
  • Reuse settings. Jobs, sessions, and notebooks that can use the selected cluster can share the same profile.

Execution mode ​

Execution mode is the most important choice in a profile, because it changes the shape of the compute:

ModeShapeUse for
standalone (default)A single Sail pod. Execution is still parallelized across threads inside that pod.Most interactive work and small-to-medium jobs. Lower overhead, faster to start.
clusterA driver pod plus separate worker pods that communicate over RPC.Large datasets that need distributed execution across multiple nodes.

Worker settings only apply in cluster mode. In standalone mode there are no workers, so only the driver sizing matters.

Sizing compute ​

On a LakeSail-managed cluster you configure:

  • Driver: the EC2 instance type (e.g. c8g.2xlarge) and EBS volume size, IOPS, and throughput for the coordinating pod.
  • Worker (cluster mode only): instance type, EBS settings, and max nodes.

In cluster mode, max nodes limits workers per client session. It does not limit the total worker count for a workload. LakeSail requests that many worker nodes once when the workload starts. Sail starts one worker pod per node when a Spark session starts. Karpenter can remove unused nodes after the workload's prewarm hold and the configured consolidation delay. Prewarming also has a deadline that includes scheduling and node launch, so late-starting capacity may be held for less time. This deadline does not limit Spark execution.

Spark sessions in one workload share the driver. Each session has its own worker pool. With max nodes set to 4, three active Spark sessions can use twelve worker nodes. The driver node is separate.

Workers use available nodes for the workload. LakeSail adds nodes when more capacity is needed. Available capacity and AWS quotas still apply.

Workers use on-demand AWS capacity. Spot is not supported. Karpenter selects each node's availability zone. Worker pods prefer the driver's zone, but workers can run in other zones. Prewarmed nodes prefer the driver's first observed zone, with fallback to any zone if it lacks capacity or is unknown. This preference is set once; replacing the driver in another zone does not move existing prewarmed nodes.

See How Compute Runs and Scales for the full lifecycle.

What a profile holds ​

The two sections above cover what most people set. A profile can hold:

  • Name: how it shows up in the picker when you attach a profile to a workload.
  • Cluster: the cluster the profile targets. Immutable after creation; a profile is tied to one cluster.
  • Execution mode: standalone or cluster. See Execution mode.
  • Compute: driver and worker sizing. See Sizing compute.
  • Spark Connect sessions per runtime: how many Spark Connect sessions can share one provisioned runtime. Only notebooks and sessions read it. The default is 1. This setting does not limit Spark sessions that your code creates within that runtime.
  • External data: S3 buckets outside the workspace bucket that the profile's workloads can use. You add them as grants on the profile. See Grant external data.

Libraries, environment variables, catalogs and the engine image are in the runtime profile. A job, notebook or session can override any compute setting except the cluster.

The API also accepts settings that are not in the current profile form:

  • EBS volume type and retention: choose gp3 or io2 and whether to delete the volume with its node. The profile form uses gp3 and deletes the volume.

Profile access follows the teams granted access to its cluster. A profile does not have a separate team assignment. Creating one needs a cluster that has at least one team, reached either through an organization role that grants profile creation or through membership of one of those teams.

Reading the profile list ​

Each profile shows Readiness and Used by. Readiness reflects whether its cluster can run workloads. Used by summarizes job and notebook references and active runtimes.

Creating a profile ​

Create a profile two ways:

  • From Compute → Compute Profiles → Add Compute Profile.
  • Inline with New compute profile while creating a job, session, or notebook, without leaving the form.

Either way, the profile is saved and can be reused by workloads with access to its cluster.

How workloads use a profile ​

  • Jobs require a compute profile. Every job version references one, and each run takes its cluster and sizing when the run is created. See Defining Jobs.
  • Sessions take a compute profile when created, and keep the settings snapshot they took when they started. See Settings of a session.
  • Notebooks reference a compute profile for the Sail pod behind the notebook. It's editable only while the notebook is Stopped. See Notebooks.

Grant external data ​

A profile's workloads can use an S3 bucket outside the workspace bucket only through a grant. A grant gives the profile chosen access to a registered external data target.

Open the profile, then its Grants tab. The tab's button shows the next step:

  • Grant access when a registered target is available. The dialog lists the targets on the profile's cloud account. If the bucket you need isn't listed, click Register a new target in the dialog.
  • Register a new target when no target is left to grant: none is registered for the profile's cloud account, or the profile already has them all.

When registration finishes, Continue to grant access opens the grant dialog with the new target selected.

You can't add or remove a grant while the profile has an active runtime. Stop its notebooks, close its sessions, let its job runs finish, and wait for cleanup to complete. Once the grant is in place, the bucket owner may also need to allow the profile in the bucket policy. For each step, see Grant the target to a compute profile.

Editing and deleting ​

  • Editing: you can change the name, execution mode and compute at any time. Saving reaches the next new job run and notebook start of each job and notebook that uses the compute profile. Its Used by tab lists them. Job runs, sessions and notebooks that are already running or queued keep their settings snapshot. A continuous job takes the edit when you publish or activate a job version, or pause and resume the job. See When settings change.
  • Immutable: cluster and workload type. To use a different cluster, create a new profile.
  • Deleting: jobs and notebooks that reference a profile prevent deletion. Move stopped notebooks to another profile and delete referring jobs before deleting the profile. A compute profile with external data grants cannot be deleted either: remove each grant on its Grants tab first.

API reference ​

  • Workload profiles: ListComputeProfiles, CreateComputeProfile, DescribeComputeProfile, UpdateComputeProfile, DeleteComputeProfile, and GetComputeProfileReferences.
  • Jobs: job versions reference a compute profile for their compute.
  • Clusters: the cluster a profile targets.
  • Data targets: external data targets and the grants that give compute profiles access to them.

Can't find the answer here? Email us: support@lakesail.com