Skip to main content
Version: 2.7.0

Architecture

Aperture is built on a distributed architecture that provides a unified observability and controllability platform for cloud-native applications. The architecture is designed to ensure high availability, scalability, and reliability.

flowchart TD blueprints[/"Blueprints"/] policies[/"Policies"/] subgraph controller["Aperture Controller"] circuit["Control Circuit"] end subgraph databases["Aperture Databases"] prometheus[("Prometheus")] etcd[("etcd")] end subgraph discoverydb["Discovery Databases"] k8sdiscovery["Kubernetes"] consul["Consul"] end subgraph orchestrators["Orchestrators"] k8s["Kubernetes"] end subgraph worker["Worker Node (Kubernetes/VM/Bare-metal)"] subgraph agent["Aperture Agent"] discovery["Discovery"] telemetry["Telemetry Collector"] flowcontrol["Flow Controller"] autoscaler["Auto Scaler"] end subgraph serviceinstance["Service Instance"] servicelogic["Service Logic"] servicemesh["Service Mesh"] end subgraph gateways["Gateways"] Kong["Kong"] Nginx["Nginx"] end end blueprints --> |aperturectl| policies policies --> |Kubernetes Custom Resource| controller controller<--> |Configuration/Telemetry/Flow Control| databases databases<-->|Configuration/Telemetry/Flow Control|agent agent <--->|SDK: Telemetry/Flow Control| servicelogic agent <--->|Telemetry/Flow Control| servicemesh agent <--->|Telemetry/Flow Control| gateways orchestrators <-->|Auto Scale| agent discoverydb <-->|Discovery| agent

Aperture Controller

The Aperture Controller is a centralized control system, equipped with a comprehensive global perspective. It is programmed using declarative policies that are stored in a policy database that can be managed using the Kubernetes Custom Resource Definition (CRD) API, allowing users to configure and modify policies as needed.

A policy represents a closed-loop control circuit that is executed periodically. The control circuit draws input signals from metrics aggregated across Aperture Agents, providing the controller with a holistic view of the application's health and performance. Service-level objectives (SLOs) are defined against these health and performance signals. The policies continuously track deviations from SLOs and calculate recovery or escalation actions that are translated as adjustments to the agents.

After computing the adjustments, the Aperture Controller synchronizes them with the relevant Aperture Agents. These adjustments encompass load throttling, workload prioritization, and auto-scaling actions, among others. By disseminating the calculated adjustments to the agents, the controller ensures that the agents take localized actions in line with the global state of the system.

Aperture Agents

Aperture Agents are the workhorses of the platform, providing powerful flow control components such as a weighted fair queuing scheduler for workload prioritization and a distributed rate-limiter for abuse prevention. Agents integrate with service meshes, gateways and HTTP middlewares. Alternately, developers can use SDKs to get flow control around specific features or code sections inside services.

The agents monitor service and infrastructure health signals using an in-built telemetry system. In addition, a programmable, high-fidelity flow classifier is used to label requests based on attributes such as customer tier or request type. These metrics are then analyzed by the Aperture Controller.

Aperture Agents schedule workloads based on their priorities, helping prioritize critical features over less important workloads during overload scenarios. For example, a video streaming service might prioritize a request to play a movie by a customer over a recommended movies API. A SaaS product might prioritize features used by paid users over those being used by free users.

Aperture Agents can be installed on a variety of infrastructure such as Kubernetes, VMs, or bare-metal. In addition to flow control capabilities, agents work with auto-scaling APIs for platforms such as Kubernetes, to help scale infrastructure when needed.

Aperture Databases

Aperture uses two databases to store configuration, telemetry, and flow control information: Prometheus and etcd. Prometheus enables Aperture to monitor the system and detect deviations from the service-level objectives (SLOs) defined in the declarative policies. Aperture controller uses etcd (distributed key-value store) to persist the declarative policies that define the control circuits and their components, as well as the adjustments synchronized between the controller and agents.

Users can optionally reuse their existing etcd and scalable Prometheus installations to minimize operational overhead and use their existing monitoring infrastructure.