scale

The convox scale command views and adjusts the scale parameters of a service, including replica count, CPU allocation, and memory allocation. When called without flags, it displays the current scale configuration for all services in the app.

scale

Scale a service

Usage

    convox scale [<service>]

The positional <service> is required for imperative changes (--count, --cpu, --memory, --gpu, --gpu-vendor, --min, --max) and optional in read-mode. With no service argument, convox scale prints the full scale table for the app. With a service argument, the table is filtered to that service's row only: the same columns, one row.

    $ convox scale web -a myapp
    SERVICE  DESIRED  RUNNING  CPU  MEMORY  GPU  MIN  MAX  STATUS
    web      2        2        256  1024    -    2    2

If the supplied service does not exist in the app, convox scale <name> exits non-zero with service "<name>" not found in app <app>. The check fires once before the watch loop starts, so a typo combined with --watch does not loop forever printing the same error.

Examples

    $ convox scale web --count 3 --cpu 250 --memory 1024
    Scaling web...
    2026-01-15T14:54:50Z system/k8s/atom/app Status: Running => Pending
    2026-01-15T14:54:51Z system/k8s/web Scaled up replica set web-745f845dc to 3
    2026-01-15T14:54:51Z system/k8s/web-745f845dc Created pod: web-745f845dc-abc12
    2026-01-15T14:54:52Z system/k8s/atom/app Status: Pending => Updating
    2026-01-15T14:54:53Z system/k8s/web-745f845dc-abc12 Pulling image "registry.0a1b2c3d4e5f.convox.cloud/myapp:web.BABCDEFGHI"
    2026-01-15T14:54:56Z system/k8s/web-745f845dc-abc12 Successfully pulled image "registry.0a1b2c3d4e5f.convox.cloud/myapp:web.BABCDEFGHI"
    2026-01-15T14:54:56Z system/k8s/web-745f845dc-abc12 Created container main
    2026-01-15T14:54:56Z system/k8s/web-745f845dc-abc12 Started container main
    2026-01-15T14:55:01Z system/k8s/atom/app Status: Updating => Running
    OK

Flags

Flag Description
--count Number of desired replicas for the service. On a Service that KEDA scales, --count N sets its minimum and maximum to N until the next deploy, and from Rack version 3.26.1 --count 0 pauses it and leaves them unchanged. See Pausing a KEDA Service
--cpu CPU allocation in millicores (e.g., 250 = 0.25 vCPU)
--memory Memory allocation in MB
--gpu Number of GPU devices to reserve per pod
--gpu-vendor GPU vendor. Supported: nvidia (default), amd, and google for Cloud TPUs on GKE. An unrecognized value falls back to nvidia. See Important Notes About GPU Scaling before changing the vendor of a deployed service
--min Minimum replica count. With autoscale configured, sets the autoscale floor. Without autoscale (3.24.6+), patches the deployment replica count directly, useful for short-lived overrides without editing convox.yml.
--max Maximum replica count when autoscale is configured. Combined with --min, requires the service to declare scale.autoscale (or scale.keda) in convox.yml. Without an autoscale block the rack returns an error directing you to add one or use --count for a fixed replica count. Services with a Console-driven triggers override accept --min/--max via the HPA bounds (3.24.6+) without requiring a manifest autoscale block.

On Racks 3.25.13 to 3.26.0, --count 0 on a Service that KEDA scales is refused with an error naming maxReplicaCount, and the Service keeps running. Racks before 3.25.13 accept it, and an idle Service goes to 0 only until the KEDA operator restarts.

Range Scale on a Stopped Service

From Rack version 3.26.1, convox scale <service> --min A --max B (or a range applied in the Console) starts a Service that is at 0 replicas and has no KEDA ScaledObject, for example one stopped with --count 0. It starts at A replicas, or 1 when --min is not given:

Service Result of the range scale
Triggers override with CPU or memory triggers (convox services triggers enable, or Override autoscale in the Console) starts, the range is applied, and the autoscaler scales it from there
Plain count range in convox.yml starts, returns the range error below, then autoscales within its convox.yml range
scale.autoscale block with no ScaledObject behind it starts at a fixed count and returns the range error below. --min 0 starts it at 1 replica

The error reports the restart, then the range scaling message. On a Rack with keda_enable=true:

$ convox scale web --min 1 --max 5
Scaling web... ERROR: service web was at 0 replicas and is now scaled to 1; range scaling (min/max) requires an autoscale block in convox.yml; set scale.autoscale and re-deploy, click Enable triggers in the Console to configure one through the UI, or use --count for a fixed replica count

On a Rack with keda_enable=false, the message after the prefix is range scaling (min/max) requires KEDA on this rack; run `convox rack params set keda_enable=true` and re-deploy, click Enable triggers in the Console to configure one through the UI (CPU/Memory work without KEDA), or use --count for a fixed replica count. A scale.autoscale block has no ScaledObject on a Rack with keda_enable=false, and on a Rack with keda_enable=true when a gpuUtilization or queueDepth trigger has no prometheusUrl and the Rack has no prometheus_url.

The command still exits non-zero in that case, so a script that checks the exit status sees a failure even though the Service was started. On a running Service the range scale does not set the replica count itself; an autoscaler that takes the range moves the count into it. While a budget auto-shutdown is armed or in force for the Service, the range scale is refused with cannot scale service <service>: a budget auto-shutdown is pending or in force for app <app>. Run 'convox budget reset <app>' to release it, then scale again, and the Service stays at 0. A Service paused through its ScaledObject resumes as described in Pausing a KEDA Service.

Output Table

When no flags are passed, convox scale prints a table of the configured scale for every service in the app. Columns 1-6 (SERVICE, DESIRED, RUNNING, CPU, MEMORY, GPU) match the 3.24.5 layout exactly so existing scripts that parse the output positionally with awk or cut continue to work unchanged. 3.24.6 appends MIN, MAX, an optional AUTOSCALE, and a trailing STATUS column at positions 7+.

    $ convox scale
    SERVICE  DESIRED  RUNNING  CPU   MEMORY  GPU  MIN  MAX  AUTOSCALE    STATUS
    web      2        2        256   1024    -    2    2    -
    vllm     0        0        4000  16384   1    0    10   gpu-util>70  COLD (~2-5m first req)

The vllm row above is at rest with zero replicas. The cold-start hint (COLD (~2-5m first req)) only renders when both DESIRED=0 and RUNNING=0 on a service whose autoscale min is 0 (a min: 0 service that has scaled back down to zero). Once a request triggers the first replica, DESIRED and RUNNING become 1+ and the STATUS cell clears. A paused Service shows paused instead of the cold-start hint.

The AUTOSCALE column appears between MAX and STATUS when at least one service in the app has autoscaling enabled. Its cell summarizes the configured trigger (e.g. cpu>70, gpu-util>80 queue>10). Services without autoscale render - in that column.

The trailing STATUS column carries the cold-start hint (COLD (~2-5m first req) for services with min: 0 autoscale) or paused, followed by the per-service budget token (armed-Nm, at-cap-keda, at-cap-auto, at-cap) while the app's budget cap is tripped or an auto-shutdown is armed or has fired, for example paused at-cap-keda. See What you see when a cap is hit for the tokens.

paused marks a KEDA Service paused with convox scale <service> --count 0 or stopped by a budget auto-shutdown. It needs CLI version 3.26.1 or later (sudo convox update) and a Rack on version 3.26.1 or later.

Column-Position Contract

Position Header Source Stable since
1 SERVICE service name 3.24.5
2 DESIRED configured replica count (s.Count) 3.24.5
3 RUNNING live process count (from ProcessList) 3.24.5
4 CPU CPU allocation in millicores 3.24.5
5 MEMORY memory allocation in MB 3.24.5
6 GPU GPU count per pod (or -) 3.24.5
7 MIN min replica count from scale.autoscale (or -) 3.24.6
8 MAX max replica count from scale.autoscale (or -) 3.24.6
9 (optional) AUTOSCALE configured trigger summary 3.24.6
trailing STATUS cold-start hint or paused, then the budget sub-state 3.24.6

See Also

  • Scaling for autoscaling configuration
  • Service for service scale attributes