Documentation menu

Platform

Runtime & Infrastructure

How services run on Parslinks - workloads and replicas, CPU and memory, health checks, restarts, start and stop behavior, the console and isolation.

The runtime turns a deployment into healthy, networked replicas and keeps them that way. This page covers what happens to your container from start to stop.

Workloads and replicas

Each running instance is a regional workload, a replica-set managed by Parslinks. Three things are kept separate:

AxisWhat it isChanged by
ReleaseWhich immutable deployment runsDeploy, rollback, promote
PlacementHow many replicas, in which regionScaling (Scaling & Regions)
ReplicaOne observed running memberThe runtime, to match placement

The runtime continuously reconciles observed replicas toward the desired placement. If a replica crashes or its host restarts, it is replaced without any action from you.

The runtime spec

Each deployment freezes a runtime spec:

FieldMeaning
Image digestThe exact image that runs (never a moving tag)
Command / argsThe start command, if you override it
PortThe container port traffic is sent to
CPULimit in millicores (1000 = 1 vCPU)
MemoryLimit in MB
ProbesHTTP or TCP health checks
Restart policyWhat happens when the process exits
Grace periodSeconds between the stop signal and a forced kill

Changing any of these is a staged change that ships with the next Apply or deploy.

Environment your container gets

  • PORT: the container port, and HOST=0.0.0.0 unless you set it.
  • Platform variables such as PARSLINKS_SERVICE_NAME, PARSLINKS_ENVIRONMENT_NAME, PARSLINKS_DEPLOYMENT_ID, PARSLINKS_PRIVATE_DOMAIN, plus per-replica PARSLINKS_REPLICA_ID and PARSLINKS_REPLICA_REGION.
  • Your variables, resolved from the deployment's snapshot (Variables & Configuration).

Resources

Set CPU and memory per service. Each replica gets these limits. Your plan caps the total per workspace (Starter: 4 vCPU and 4 GB; Pro: 16 vCPU and 32 GB). If a replica cannot be scheduled, the instance reports why:

ReasonMeaning
INSUFFICIENT_MEMORY / INSUFFICIENT_CPUNo host in the region has room for the requested limits.
IMAGE_PULLThe image could not be pulled (tag, credentials, registry).
PROBE_FAILEDReplicas start but never pass the health check.
VOLUME_REPLICA_LOCKA volume is attached, so the region is limited to one replica.
NO_NODESNo runtime host is available in the region.

Health checks

Readiness is decided by probes the platform runs from outside your container:

  • HTTP check: a path (for example /healthz) must answer with a 2xx or 3xx status.
  • TCP check: the port must accept a connection.

A replica is ready only when its probe passes and it is in the platform endpoint's ready pool. Deploys use this as their health gate (Deployments).

Guidelines:

  • Make the health path cheap and dependency-light. A check that queries the database can fail a deploy during a database hiccup.
  • Do not rely on a Dockerfile HEALTHCHECK; Parslinks does not use it for readiness.
  • Give slow-starting apps enough startup time before the first probe counts.

Start and stop

  • Start: new replicas start, probes begin, and a replica joins the ready pool only after it passes.
  • Stop: the replica first leaves the ready pool, then receives SIGTERM. After the grace period it is killed. Handle SIGTERM to finish in-flight requests and close connections cleanly.
  • Rollouts: start-first by default (no downtime), stop-first when a volume is attached.

Pause and resume

Pausing an instance stops its replicas and removes it from routing, without deleting anything. Paused instances do not consume compute. Resume to start it again with the same deployment.

The console

Open an interactive shell in any ready replica from the service's Console tab: no SSH keys and no open ports. Sessions target a specific replica, so what you see is what serves traffic. Sessions close after 30 minutes of inactivity and last at most 4 hours. On restricted projects the console requires project admin rights.

Isolation

Customer workloads are treated as untrusted:

  • no Docker socket, no cluster manager API, no privileged mode;
  • a project-scoped network per project;
  • health probes run by the platform, never by executing tools inside your image.