Horizontal Scaling Guide
Guide for scaling MetaPilot infrastructure to handle high broadcast volumes and tens of thousands of active WebSockets.
1. Scaling Strategy Overview
Rendering diagram...
Scaling Components
- Daphne ASGI Nodes: Scale statelessly behind Nginx / AWS ALB.
- PostgreSQL Connection Pooling: Use PgBouncer in mode to prevent connection exhaustion.
transaction - Redis Cluster: Distribute Celery queue (DB 0) and Channels layer (DB 1) across dedicated Redis instances.