Skip to content

How compute runs and scales

LakeSail separates cluster infrastructure from workload compute. Cluster infrastructure remains in place while it is deployed. Sail compute starts when a job run, session, or notebook starts.

Two layers of compute

  • Management nodes run the cluster's system services. Cluster settings control their minimum, desired, and maximum counts.
  • Workload compute runs Sail for jobs, sessions, and notebooks. Its size comes from a compute profile, and capacity is added on demand.

A compute profile stores configuration. Creating or editing one does not start or reserve compute.

From start to ready

text
Workload starts
      |
      v
Sail runtime scheduled
      |
      v
AWS capacity added if needed
      |
      v
Work runs
      |
      v
Compute reclaimed

When suitable capacity is not ready, AWS must launch a new instance before the Sail runtime can start. This is why the first workload on a cold cluster takes longer.

Execution modes

text
Standalone                    Cluster

Workload request              Workload request
       |                             |
       v                             v
+--------------+             +-------------+
| Sail runtime |             | Sail driver |
+--------------+             +------+------+
                                     |
                             +-------+-------+
                             |               |
                             v               v
                       +-----------+   +-----------+
                       | Worker    |   | Worker    |
                       +-----------+   +-----------+
  • Standalone uses one Sail pod. Work still runs in parallel within that pod. This mode has less startup overhead and fits most interactive work and small-to-medium jobs.
  • Cluster uses a driver and separate workers. Sail adds workers for distributed execution, up to the maximum set in the compute profile.

Worker settings apply only in cluster mode.

How scaling works

Management and workload compute scale independently:

  • Cluster settings size management nodes.
  • Sail scales workers up to the profile's Max nodes. This is a ceiling, not reserved capacity.
  • AWS capacity is added as needed and reclaimed automatically.

Runtime lifetime

WorkloadRuntime startsRuntime stops
JobFor each runWhen the run finishes
SessionWhen the session startsOn close, after its idle timeout and close delay, or at maximum duration
NotebookWhen the notebook startsOn stop, after its idle timeout and close delay, or at maximum duration

Jobs receive fresh compute for each run. Sessions stay warm for interactive use. Stopping a notebook releases its runtime but preserves its contents.

What affects startup and usage

  • Instance startup: launching new AWS capacity takes longer than using capacity that is ready.
  • Execution mode: cluster mode may start worker capacity in addition to the driver.
  • Libraries: installing packages adds startup work.
  • Instance size and runtime: LakeSail measures workload vCPU and memory over time.
  • Maximum workers: raising the maximum increases the available ceiling but does not create workers by itself.

Stop sessions and notebooks when they are no longer needed to release compute sooner. See Trial & usage for metering and rates.

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