Download Latest Version 0.20.19 source code.tar.gz (32.2 MB)
Email in envelope

Get an email when there's a new version of dstack

Home / 0.20.19
Name Modified Size InfoDownloads / Week
Parent folder
0.20.19 source code.tar.gz 2026-04-30 32.2 MB
0.20.19 source code.zip 2026-04-30 33.1 MB
README.md 2026-04-30 3.7 kB
Totals: 3 Items   65.3 MB 0

Services

RPS window for autoscaling

Services now support a window property in the scaling spec that defines the time window used to calculate RPS. Allowed values are 30s, 1m, and 5m (default is 1m). Previously, the RPS was always calculated using a 1m window.

:::yaml
type: service
image: nginx
port: 80

replicas: 0..1
scaling:
  metric: rps
  # 1 request per second, calculated over a 5-minute window
  target: 1
  window: 5m

Kubernetes

registry_auth

The kubernetes backend now supports the registry_auth property for pulling Docker images from private registries:

:::yaml
type: service
image: nvcr.io/nim/deepseek-ai/deepseek-r1-distill-llama-8b
registry_auth:
  username: $oauthtoken
  password: ${{ secrets.ngc_api_key }}

dstack automatically creates and sets up imagePullSecrets for the pods. This requires new permissions for the Kubernetes role:

:::yaml
rules:
  resources: ["secrets"]
  verbs: ["create", "delete"]

Read-only volumes

Kubernetes volume configurations now support a new read_only property. When set to true, it enforces readOnly: true in the pod's volumeMounts.

:::yaml
type: volume
backend: kubernetes
name: my-volume
size: 100GB
read_only: true

Server

Faster processing

The server has been optimized to reduce processing latencies. As a result, many operations now take less time: run provisioning is up to 14s faster and run termination is up to 7s faster.

Examples

Documentation and examples have been refreshed, including a new Qwen3.6-27B and DeepSeek V4 examples. A new prefill-decode blog post shows how to run SGLang PD disaggregation via Shepherd Model Gateway.

Breaking changes

Python 3.9 support dropped

Running dstack on Python 3.9 is no longer supported, as Python 3.9 reached end-of-life on 2025-10-31. Please upgrade to Python 3.10 or later.

What's Changed

Full Changelog: https://github.com/dstackai/dstack/compare/0.20.18...0.20.19

Source: README.md, updated 2026-04-30