Auto scaling Azure Cosmos DB for PostgreSQL with Citus, Grafana & Azure Serverless
summary
Shows a working pipeline that auto-scales an Azure Cosmos DB for PostgreSQL (Citus) cluster using Grafana alerts, Azure Functions (Serverless) calling ARM, and the Postgres client API; demo runs pgbench, adds two workers when CPU >80%, waits ~10 minutes for nodes to provision, then rebalance shards automatically via SQL and pg_dist_node; CPU on workers falls from ~80%+ to under 80 and latency drops from ~150ms to ~100ms; also uses Redis to avoid duplicate runs and isolates a tenant when it uses >50% of a shard.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 3:33Why auto scaling?
- 4:59Auto scaling a Citus cluster
- 8:31Grafana
- 11:54Azure Functions (Serverless)
- 13:23Azure Resource Manager (ARM)
- 15:12Demo of Autoscaling Azure Cosmos DB for PostgreSQL
related talks
16mOnline Scale-Out and Cloud Data Ingestion
52mBuilding Distributed OLTP with Azure Cosmos DB for PostgreSQL
02h 02mAzure Cosmos DB: Liftoff
06mKeynote: Azure Cosmos DB for PostgreSQL
44mMulti-tenant SaaS apps made simple on Azure Cosmos DB for PostgreSQL
50mUnleashing the Power of Azure for PostgreSQL
08mFoundations of Distributed PostgreSQL with Citus
13mHow to do Data Modeling for Distributed Postgres in Azure Cosmos DB
