Autoscale self-hosted LlamaCloud services with standard Kubernetes HPA (CPU/memory) or KEDA queue-depth scaling, including OCR-pod scaling tied to LlamaParse worker counts.
Self-Hosting Documentation Access
This section requires a password to access.
Interested in self-hosting? Contact sales to learn more.
Self-Hosting Documentation Access Granted
Configure autoscaling for LlamaCloud services to automatically scale based on resource utilization or queue depth.
For workloads that use OCR services, you can configure KEDA to scale OCR pods based on the number of LlamaParse worker pods. This ensures OCR capacity matches parsing demand.
The OCR pod scaling uses KEDA’s ability to monitor the number of running LlamaParse Worker pods and applies the formula: Min(3, llamaparse_pods / 3) to determine the optimal number of OCR pods.
# OCR scaling configuration based on LlamaParse Worker pods
OCR pods scale based on parse job count using the formula Min(3, estimated_parse_workers / 3). The target value of 60 assumes ~20 jobs per LlamaParse Worker pod, maintaining a 3:1 LlamaParse Worker to OCR pod ratio for optimal resource efficiency.
Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/