> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salad.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For autonomous tasks, use live SaladCloud API responses for current state, availability, quotas, models, and other dynamic values. Use current OpenAPI specifications where provided for paths, schemas, required fields, and enums. Never invent endpoints, fields, prices, availability, quotas, models, or state. Prefer API workflows over Portal steps. Read before changing and never expose credentials, signed media URLs, prompts, or sensitive outputs. Retry only safe or idempotent operations with bounded backoff, honoring Retry-After. Verify every write with a read. Stop rather than repeat an uncertain non-idempotent or billable request. AI Gateway uses an organization-specific Bearer key and live /v1/models discovery. Do not delete, cancel, stop, or reduce capacity without explicit user intent. Bind shared operation IDs to the selected product path. Treat Container Engine instances as interruptible and local state as ephemeral. Install the SaladCloud skills (npx skills add https://docs.salad.com), start from the salad skill and /agents/overview; docs MCP: https://docs.salad.com/mcp.

# Job Queue Autoscaling Overview

> Learn how SaladCloud Job Queue autoscaling automatically adjusts container instances based on queue depth to optimize performance and cost for batch processing workloads.

*Last Updated: October 7, 2026*

> Treat queue length, quota, and capacity as live values. Use the [Job Queue autoscaling
> runbook](https://docs.salad.com/agents/container-engine/configure-job-queue-autoscaling.md), verify the queue/group association, and observe
> actual instances and job state before claiming scale-up or scale-down succeeded.

**Job Queue Autoscaling** in SaladCloud dynamically adjusts the number of container instances based on the number of
jobs in your SaladCloud job queues. This ensures that your infrastructure scales up when job volume increases and scales
down during low usage periods, optimizing both performance and cost efficiency.

Job Queue autoscaling integrates directly with SaladCloud's managed queue service and the Job Queue Worker to provide
seamless scaling for batch processing and job-based workloads.

## Prerequisites

Before you can enable Job Queue autoscaling, you must configure the Job Queue:

1. Ensure that [**SaladCloud Job Queues**](https://docs.salad.com/container-engine/explanation/job-processing/job-queues.md) are enabled for your
   container group.
2. Verify that your application can handle scaling with multiple container instances.
3. Review the [Job Queue Autoscaling Settings](https://docs.salad.com/container-engine/reference/autoscaling/settings.md) to understand how to
   fine-tune autoscaling for your workloads.

> [!TIP]
>
> Get jobs running end to end with a fixed replica count first, then attach the autoscaler. See [Cold Starts and
> Iterating Quickly](https://docs.salad.com/container-engine/how-to-guides/cold-starts-and-iterating-quickly.md).

## Example Use Case

Let's say you run a batch processing workload, but the number of jobs you receive is inconsistent. Sometimes, there are
no jobs at all, and you want to scale down to zero instances to avoid paying for unused compute resources. By setting
the **Minimum Replicas** to 0, the Job Queue autoscaler will automatically scale down to zero when the queue is empty,
which means you don't pay for any resources when there is no workload. However, this will result in cold starts when new
jobs arrive. Cold starts occur when the system needs to initialize new instances, which can introduce a delay while
containers are started from an inactive state.

At other times, you might experience a spike where thousands of jobs need to be processed quickly. By setting the
**Maximum Replicas** to 100, you can scale up and process all the jobs much faster. Even though you're using more
instances, you're still paying for the same amount of compute hours you would have spent on one instance, but the jobs
are completed 100 times faster, reducing overall processing time.

***

Ready to configure Job Queue autoscaling? Learn more about the available
[Settings](https://docs.salad.com/container-engine/reference/autoscaling/settings.md) or
[Set Up Job Queue Autoscaling](https://docs.salad.com/container-engine/how-to-guides/autoscaling/enable-autoscaling.md) in SaladCloud.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.