AAnvio
Reference ArchiveSource Docs

Deployment

| Mode | How | Status | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------

1 min read

This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.

Original path: docs/14-deployment.md

ModeHowStatus
CLIanvio run / anvio chat against a workspace directorySupported; verified
Single-process daemonanvio gateway start [--foreground]: channel hub, run worker, HTTP API, WebSocket and A2A routes in one process. Binds to 127.0.0.1:3001 by default (ANVIO_GATEWAY_HOST, ANVIO_GATEWAY_PORT)Supported; verified at Level 1 in a single process (post-refactoring/06)
Separate API / worker processesapps/api (NestJS) and apps/workerCode present; multi-process operation on one workspace was not verified, and startup session repair is unsafe there (ROADMAP R-03)
Containersdocker/Dockerfile.api, Dockerfile.gateway, Dockerfile.worker; docker/docker-compose.yml (PostgreSQL, Redis, NATS, API) and docker-compose.dev.ymlFiles provided; not verified in the latest audit
Kubernetes—No manifests or Helm chart in this repository

Operating notes

  • One process per workspace. Run one Anvio process per workspace directory. The scheduler and the session repair assume they are the only process using it.
  • Restarts. Shutdown does not drain in-flight turns. Turns running at shutdown are reported as failed on the next start, and messages queued behind the concurrency cap are lost (ROADMAP R-01).
  • Network exposure. Before exposing the gateway beyond loopback, enable auth and put TLS in front of it. The API refuses to run unauthenticated on a reachable interface (ADR-0018). A2A server auth is configured separately (a2a.auth).
  • Environment. Do not run with NODE_TLS_REJECT_UNAUTHORIZED=0.
Edit on GitHub

Last updated on

On this page