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
routingService discovery and routing hub
- Controller registration
- Client location tracking
- Version-based control-plane routing
- Automatic cleanup of stale instances
Controller
APIREST 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
xDSxDS 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 planeThe 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 agentThe 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_procAPI 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
analyticsTurns 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.
- ClientAgent on host
- RegistryLocate the controller
- ControllerCommands & resources
- Control-PlaneSnapshot per version
- EnvoyApply config
Connection
Agents and Envoys connect through the front-door Envoy; the Registry, an ext_proc service, tells it which controller holds each client.
Routing
Each Envoy's xDS stream is sent to the control plane of its own Envoy version.
xDS Protocol
When a resource changes, the controller rebuilds the snapshot and the control plane streams it to Envoy.
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.
- 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.