Elchi architecture: three processes and an edge agent.

A Registry, a Controller and one Control-Plane per Envoy version run centrally; on each edge host an agent runs Envoy next to Shield. Every backend process scales out and can run as several instances.

What do the Registry, Controller and Control-Plane each do?

Three backend processes, each with one job. They are built from one binary, scale out independently, and run as several instances behind the Registry.

Registry

routing

Service discovery and routing hub

  • Controller registration
  • Client location tracking
  • Version-based control-plane routing
  • Automatic cleanup of stale instances

Controller

API

REST API and management layer

  • Client management & command dispatch
  • xDS resource management (CDS, LDS, RDS, EDS)
  • User & authorization (RBAC)
  • Persistent configuration store
  • AI-assisted config analysis (OpenRouter)
  • K8s Discovery system

Control-Plane

xDS

xDS control plane

  • Envoy ADS (Aggregated Discovery Service)
  • VHDS (Virtual Host Discovery Service)
  • Snapshot management per Envoy
  • Live updates on every change
  • Auto-registration with registry
  • Health monitoring & keepalive
  • High availability

    Several controllers and control planes share one MongoDB and elect a leader for scheduled work, so the management plane keeps running when an instance fails. At the edge, active/passive Elchi OS pairs share VIPs and fail over in about two seconds.

  • Scaling out

    The processes are horizontally scalable behind the Registry. The sizing guide recommends adding replicas before raising limits; the Control-Plane's memory is the first to watch as the xDS snapshot grows.

  • Version routing

    Each Envoy reports its version, and its xDS stream goes to the control plane built for that version, so several Envoy versions run side by side in one project.

What runs on each Envoy edge host?

Each edge host runs Envoy plus the agent that deploys it and the sidecar that secures it; the collector that observes it runs centrally. All of it is driven by the control plane.

Envoy

data plane

The L7 proxy that carries your traffic

  • Receives config over xDS from the control-plane
  • Calls Shield over ext_proc for security decisions
  • Ships access logs (ALS) to the collector
  • No restarts — config applied live

elchi-client

edge agent

The agent that operates each edge host

  • Registers the node & runs controller commands
  • Deploys / upgrades Envoy and bootstrap
  • Bundles & manages the Shield sidecar
  • Ships logs, manages BGP/FRR & networking
  • Runs elchi-ha on Elchi OS: active/passive VIP pairs

Shield

ext_proc

API security enforced in the request path

  • WAF (OWASP CRS), JWT/mTLS, rate-limit, bot — 12 engines + built-in DLP
  • Runs locally next to Envoy on each edge host
  • Policies pushed as files, hot-reloaded
  • block / detect / shadow decisions, fail-open by default

Collector

analytics

Turns traffic into an API inventory

  • Ingests Envoy access logs
  • Normalizes paths, scores risk & PII
  • Builds the endpoint catalog and the event history
  • Powers API Discovery — metadata only, no bodies

Want the full wire map — every port, protocol, and data flow between the control plane and the edge? See the Architecture reference in the docs.

Which layers make up the platform?

The UI, the three backend processes, the stores they write to, and the proxies on the edge hosts.

Management Console

  • Visual editorsEvery Envoy resource
  • Dependency graphsResource relationships
  • Live viewsTraffic, metrics & logs

Backend Layer — 3-Process Architecture

  • ControllerAPI · client management, xDS, auth
  • Control-PlanexDS · ADS, VHDS, snapshots
  • RegistryDiscovery · service routing, versioning

Data Layer

  • MongoDBResources, projects & audit
  • VictoriaMetricsLong-term metrics
  • ClickHouseAPI events & security audit

Proxy Layer

  • Envoy ProxyMulti-Version Support
  • Shieldext_proc · OWASP CRS WAF
  • elchi-clientDeploys, upgrades & restarts Envoy

How does a change reach a running Envoy?

From the agent's registration to configuration applied in Envoy, step by step.

  1. ClientAgent on host
  2. RegistryLocate the controller
  3. ControllerCommands & resources
  4. Control-PlaneSnapshot per version
  5. EnvoyApply config
  1. Connection

    Agents and Envoys connect through the front-door Envoy; the Registry, an ext_proc service, tells it which controller holds each client.

  2. Routing

    Each Envoy's xDS stream is sent to the control plane of its own Envoy version.

  3. xDS Protocol

    When a resource changes, the controller rebuilds the snapshot and the control plane streams it to Envoy.

  4. Configuration

    Envoy applies the new listeners, routes and clusters without a restart.

Which systems does Elchi integrate with?

Platforms, directories, metrics and logging backends, AI providers and certificate authorities Elchi connects to.

Native integration
  • Kubernetes
  • Docker
  • Envoy
  • Grafana
  • Prometheus
  • OpenStack
  • OpenRouter
  • LDAP / AD
  • Syslog
  • ELK Stack
  • Let's Encrypt
  • Google Trust Services

Run this architecture on Kubernetes or plain VMs.

Install with the Helm chart on Kubernetes, or as systemd services on one, two, or three or more Linux VMs with the bare-metal installer. For a demo on your own setup, talk to us.