Skip to content
Development preview · 2.0.0-SNAPSHOT

Deployment and runtime operations

Use this page to publish process versions, update their Alias routes, monitor Workbench Server, and handle common operational failures. See Hot deployment for command usage and Durable operations for persisted execution recovery.

Choose the checks for the topology you run:

Topology What to check after a route change
EMBEDDED Routing Outbox delivery and whether the local node can execute the new route.
DISTRIBUTED Route delivery and node readiness, plus the projection store and reconciliation.
AUTHORITY The committed Alias; for Core workers, confirm polling and local readiness; for Durable, confirm the Version selected by a new Run. There is no routing Outbox.
State to verify Read from Applies to
Committed Alias and rollout ProcessDeploymentService.getAlias(...) and getRollout(...) All topologies
Routing Outbox and dispatcher GET /api/deployment-control/health Workbench Server in PROCESS execution mode
Routes and installed versions on this node GET /api/monitoring/deploy-runtime Workbench Server in PROCESS execution mode
Persisted whole-process invocation queue GET /api/monitoring/async-invocations Workbench Server in PROCESS execution mode

Use an authenticated server-side connection for HTTP checks. The monitoring guide explains the fields. For applications operating Deploy directly, inspect their node-local convergence and installation diagnostics. Maintainers can inspect LocalRoutingReconciler.snapshot() and VersionRuntimeManager.snapshot() in an embedded composition, or DeploymentRuntime.snapshot() in a Core runtime worker. These implementation types are not application API contracts.

  • Confirm the target namespace, process code, Alias, exact version, and current route revision.
  • Check the definition digest and the content saved for the selected version.
  • Confirm database health, migration status, runtime capacity, and the delivery components required by the topology.
  • Before changing traffic, decide how long to observe the canary, how many samples are needed, and who may roll back.
  • Keep API keys, routing keys, payload variables, and lease tokens out of logs and tickets.
  1. Validate the definition and run the relevant preflight and release tests.
  2. Publish a new version. Its content is immutable; changed content needs a new version identity.
  3. Read the current Alias route and supply its revision with the command. Use 0 only for an Alias that has never existed; a retired Alias retains its positive revision.
  4. Create the rollout with a stable idempotency key. Use an all-at-once rollout for the first Alias route; a canary requires an existing stable version.
  5. Confirm the control-plane transaction committed. For EMBEDDED and DISTRIBUTED, also confirm routing Outbox delivery. For AUTHORITY Core workers, check that the target Alias is assigned and polling succeeds. In every Core deployment, compare the target nodes’ local-ready revisions with the current committed Alias revision and the intended route. If another change has already superseded your command, investigate the new state rather than replaying the old command.
  6. Then run a controlled execution with input approved for the target environment. For Durable, check the Version selected by the new Run. For ordinary process execution, check the effective Version and route revision.

In DISTRIBUTED and AUTHORITY with Core workers, nodes may still be loading the new version when the command succeeds. Each node continues using its most recently prepared, atomically published local route. Without a valid local route, or after a retirement converges locally, new Alias execution is refused.

Canary weights are integer basis points in 1..9999; for example, 1000 means 10%. Use technical and business metrics over an agreed observation window to decide whether to continue changing traffic. The built-in health endpoint reports state; it does not promote or abort the rollout.

When changing deployment state through Workbench Server’s HTTP API, revision mismatches return 409 Conflict with code CONCURRENT_MODIFICATION. Other 409 codes identify different conflicts. In EMBEDDED mode, 503 CONVERGENCE_FAILED can also follow a committed route transaction. After an ambiguous response, read the committed Alias, rollout, and audit records before retrying. Do not simply generate another idempotency key or refresh the revision. To replay creation or rollback, keep the original key and request unchanged. See Deployment response recovery.

To abort an active canary, stop changing its weight, then submit AbortRolloutCommand with the current rollout revision and a specific reason. Check that the route returns to the baseline recorded when the canary was created.

To roll back a completed deployment, select a completed rollout that retains its baseline. Read the Alias’s current revision and supply it as expectedAliasRevision with a new idempotency key in RollbackRolloutCommand. Check the route and runtime according to the topology. Rollback creates a new rollout and preserves the earlier records.

To stop new admissions through a live Alias, first promote or abort any active canary. Call retireAlias with the current Alias revision and a stable idempotency key (or use POST /api/deployments/retire in Workbench). Verify that getAlias returns a retired record with the new revision and no targets. For Core, confirm local convergence on every serving node and verify that new Alias calls are rejected; for Durable, verify that new Runs using that Alias are rejected. Retirement does not cancel admitted executions or prohibit explicit Version calls, but may release runtime ownership held by the Alias. An explicit call still requires the exact Version to be installed; retain it independently through ProcessVersionRuntime when needed. Retirement is not an immediate fleet-wide stop.

After an ambiguous response, read committed state and retry the identical retirement command with its original key. To restore service, roll back the retirement or create an all-at-once rollout with the retired Alias revision. See Hot deployment.

/api/monitoring/async-invocations returns a current queue snapshot:

  • Ready tasks are due and waiting for capacity; delayed tasks are waiting for their retry time.
  • Local running and dispatched counts belong to the responding node. Persisted queue, dead-letter, and expired-lease counts come from the shared database.
  • degraded means a dead letter or expired running lease exists. Compare queue latency and throughput with the application’s objectives to decide whether an SLO has been violated.

Choose the next action from the queue state:

Observation Next action
readyQueuedCount and oldestReadyAgeMs keep increasing Compare each node’s localRunningCount, dispatchedCount, and concurrency. Check whether workers are processing tasks and whether execution is slowing before changing caller load or capacity.
delayedQueuedCount increases Inspect failed attempts and their next retry times. These tasks are not due yet, so they do not all indicate a capacity backlog.
deadLetterCount > 0 Inspect the request and attempts by invocation ID. Fix the cause and confirm that replay is safe before requeuing.
expiredRunningCount > 0 Check whether the previous worker exited or lost database connectivity and whether lease recovery is working. Do not shorten leases to force replay.

Use an invocation ID to correlate attempt records, trace data, the effective Version, the Alias revision, and runtime diagnostics. After repairing a capacity, dependency, or runtime preparation problem, confirm that the business operation is safe to retry before requeuing the invocation. Requeuing preserves its original exact Version and input; it does not select the Alias again.

If the definition needs correction, publish a new immutable version. Submit a changed version or input as a new invocation with a new invocation ID. Check any external operations already performed, and reuse the business idempotency key where needed to prevent duplicate effects.

A running invocation can be reclaimed after its lease expires. Late completion from the previous worker is rejected. Do not edit queue rows or shorten leases to force recovery.

Record the DeploymentException code and request ID, then check the version identity, model type, UTF-8 content size, actor, and optional expectedArtifactDigest. Use preflight to locate model problems. If the content changes, publish it under a new version identity.

These checks apply to routing delivery in EMBEDDED and DISTRIBUTED, not to AUTHORITY.

  1. Read deployment health. If outboxStateAvailable=false, restore database reads first; zero counts in this response do not establish an empty queue. If dispatcherRunning=false, inspect the control-plane role and its lifecycle.
  2. Once the Store is readable, inspect pendingCount, processingCount, expiredClaimCount, and failedCount separately. The last field counts dead letters; waiting for a retry is a different state.
  3. Use the failure records to check credentials, write latency, and the projection store’s atomic compare-and-set (CAS). Retry after fixing the cause. Duplicate delivery is allowed; a content conflict requires establishing which record is correct before any repair. Workbench’s POST /api/deployment-control/dead-letters/requeue requeues routing dead letters across the shared Deploy Store, with no process filter. Send an empty request body and confirm the scope before using it.
  4. Read health again to confirm that expired claims and dead letters have been handled and the backlog is falling as expected. Then check the target nodes’ local-ready revisions to confirm that the route can execute.
  1. Use the node-local diagnostics described above to identify the failed exact Version, desired Alias revision, and backoff reason. For AUTHORITY workers, also check database reads, assigned Aliases, and routing.poll-interval. A missing previously observed row is not a deletion; the last valid route can remain in use.
  2. Check artifact availability, digest integrity, access, compiler resources, and executor capacity. A missing or corrupt artifact needs repair; waiting longer does not fix it.
  3. Read the snapshot again after the repair. Confirm that the required versions are installed and the Alias’s local-ready revision matches its desired revision, then run a controlled request. Do not bypass readiness or switch to an unversioned definition.

After restart, confirm that Deploy’s migration history and checksum checks pass and that no migrations are pending. Then check that Alias state matches the committed records. For AUTHORITY Core workers, verify successful polling, local readiness, and one Alias execution. For EMBEDDED and DISTRIBUTED, verify route delivery, local readiness, and one Alias execution. For Durable admission, verify a new Run’s version selection. Also check projection reconciliation in DISTRIBUTED and expired-lease recovery for each enabled persisted-work worker.

Check the effective Version and route revision in protected logs or diagnostics. Built-in metrics omit these high-cardinality identifiers from their tags.

Check publication conflicts, route and rollout revisions, outbox backlog, runtime failures, async dead letters, expired leases, and the time between a route change and node readiness. Keep published versions and their application artifacts according to a reference and rollback policy. The documented Deploy API does not delete published Versions. Do not remove external artifacts needed by a route, retained Run, or recovery window.