quick-cartoon-22764
11/24/2025, 1:59 AMtall-airline-16756
11/24/2025, 1:59 AMtall-airline-16756
11/24/2025, 2:00 AMmetrics_collected event to track memory trends over time.
• Correlate memory spikes with job starts, STT/LLM/TTS usage, or subprocess spawn events.
• Use UsageCollector or your process-level tools (top/ps, pmap, heap profilers) to identify which subsystems consume most memory.
Longer-term fixes
• Implement autoscaling (HPA) using memory and CPU; consider a load_fnc that factors memory pressure.
• Move heavy workloads to dedicated agent servers or scale out agents so each handles fewer concurrent jobs.
• If memory grows continuously over time, investigate buffering, logging volume, or model inference code for leaks.
To provide precise recommendations, please share:
• Agent SDK and version (Python or Node)
• Kubernetes pod memory requests/limits and node instance type
• Number of concurrent jobs handled by that agent pod
• Whether noise cancellation, video, large local models, BVC, STT/TTS, or other heavy features are enabled
• Whether this is LiveKit Cloud or self-hosted
Would you like step-by-step commands/examples for checking pod memory and logs or for changing requests/limits?
Sources: Observability data hooks | LiveKit docs | Deploying to custom environments | LiveKit Docs | Agent server options | LiveKit docs | Automation & Knowledge Management Tools | livekit/livekit_composite | DeepW... | Agent insights in LiveKit Cloud | LiveKit docs