What problem does it solve?
Balancing infrastructure cost against performance for Langfuse web, web-iso, and web-ingestion services requires careful analysis of autoscaling thresholds, container counts, and production metrics, and mistakes can cause either wasted spend or latency regressions.
Core Features & Use Cases
- Autoscaling Tuning: Reviews and adjusts RPM targets, scaling boundaries, minimum task counts, and max-capacity multipliers in Terraform tfvars across prod-us, prod-eu, prod-hipaa, and prod-jp.
- Evidence-Based Decisions: Queries Datadog for CPU, request counts, event-loop delay, latency, and error rates, and inspects APM traces to distinguish container saturation from ClickHouse-bound queries.
- Exact Marker Math: Computes dashboard scale-up and scale-down markers using OpenTofu console to avoid off-by-one errors from Terraform float behavior.
- PR and Linear Workflow: Creates GitHub PRs for scaling changes and prepares human-reviewed Linear follow-up tickets only after explicit approval.
- Use Case: When prod-hipaa web containers sit idle at an accidental floor of 20 tasks, use this Skill to verify health metrics, lower the minimum to 3, raise the multiplier to preserve burst capacity, and open a reviewed PR.
Quick Start
Use $infra-scaling to review Langfuse web-ingestion autoscaling in prod-us with Datadog evidence and prepare a GitHub PR if changes are recommended.