Documentation menu

Platform

Scaling & Regions

Run more replicas of a service, choose its region, understand placement versus releases, and the limits that apply.

Scaling on Parslinks changes placement: how many replicas of an instance run, and where. It never builds, never creates a release and never changes what code runs.

Placement

Placement is set per instance (service × environment) as a list of regions with a desired replica count each:

instance api (production)
  └── us-west-nevada → 3 replicas
text2 lines

When you change it, the runtime adds or removes replicas of the current deployment in that region. The change applies right away, without Apply.

Adding replicas

  1. Open the service's Settings → Scaling in the right environment.
  2. Set the replica count for the region.
  3. New replicas start, pass the health check and join the ready pool; traffic is spread across all ready replicas.

Use more than one replica for availability: when one replica restarts or its host is replaced, the others keep serving.

Designing for several replicas

  • Keep replicas stateless: store sessions, uploads and caches in a database, Redis or object storage, not on local disk.
  • Requests from one user can land on different replicas. Do not rely on in-memory state between requests.
  • Run scheduled jobs from a single place (one replica, or a separate worker service) so they do not run N times.
  • Each replica gets its own PARSLINKS_REPLICA_ID, useful for logs and leader election.

Volumes limit a region to one replica

A volume can be mounted by one replica at a time. When a service has a volume, its region is limited to one replica, and the instance reports VOLUME_REPLICA_LOCK if you ask for more. Databases are single-replica for the same reason. See Volumes & Backups.

Regions

A region is a group of runtime hosts in one location, for example us-west-nevada. An instance's private hostname, volumes and public TCP proxies are region-local. Your plan sets how many regions a workspace can use (currently 1 on Starter and Pro).

Scaling to zero

Setting the replica count to 0 stops all replicas of that instance in the region while keeping the deployment, variables and domains. It behaves like a pause for that region. Paused or zero-replica instances do not use compute credits.

Limits

LimitStarterPro
Replicas per service210
Total CPU4 vCPU16 vCPU
Total memory4 GB32 GB
Regions11

Limits are checked by the billing service when you scale; a request beyond them fails with a clear quota error. Current values are on the pricing page.

Scaling versus deploying

You changeWhat happens
Replica count or regionReplicas of the current deployment are added or removed. No build.
CPU or memoryPart of the runtime spec: ships with the next Apply or deploy.
Code, variables or imageA new deployment through the full pipeline.