About
Hangar Addons is the flight simulator addon site I run for MSFS and X-Plane pilots. It lives on the same Kubernetes cluster and hardware as this Looking Glass, so here is how it is put together.
How a request travels through hangaraddons.com.
Five servers I own and run. One is the control plane, three run the apps and the databases, and one holds the shared storage and the graphics card.
Cloudflare caches images and absorbs junk traffic. Tunnel connectors running inside the cluster carry real requests in.
Every piece is its own Helm chart in one namespace, behind ingress nginx with Let's Encrypt certificates. A deploy builds the images, then rolls them out one pod at a time.
Pages for signed out visitors come from an nginx cache that holds each page for 30 seconds, and it is cleared the moment an addon changes. Signed in pages always go to the app.
Files live on a shared NFS volume. A small nginx service hands out images read only, and a separate image service makes the WebP and AVIF sizes so a big upload can never knock over the API.
PostgreSQL (CloudNativePG), Redis with Sentinel, RabbitMQ and Elasticsearch each run three copies on three different servers, on local disks, so losing one machine does not lose the site.
Notifications, search indexing, GitHub syncing and livery rendering all run as separate workers reading from RabbitMQ queues. Liveries are rendered with Blender on the GPU.
Prometheus and Grafana for metrics and alerts, Loki for logs and Tempo for traces. The API, the workers and the frontend are all instrumented with OpenTelemetry.
The Windows manager app updates itself from a feed served by the site, and the same API serves the app and the website.
The busy parts add and remove pods on their own as CPU load changes. The workers stay at a fixed size because they only pull jobs from a queue.
Hangar Addons is free to use for MSFS 2020, MSFS 2024 and X-Plane.