Planning

AOS Work and Runtime Capacity Planning Summary

Terminology

TermPlain-language explanation
AOS WorkThe backend service for user login, page access, Workspace reads, Credits, and other business APIs.
RuntimeThe backend service that actually receives and executes AI tasks.
SandboxAn isolated runtime environment created for AI tool tasks. It can execute commands and read or write files, but consumes more CPU, memory, and disk.
No SandboxNo isolated environment is created and no file or command tools are executed; this tests only Runtime's basic task-processing capability.
QPS / req/sThe number of API requests that can be processed per second.
Run/sThe number of ordinary tasks Runtime can process per second.
Session/sAfter Sandbox is enabled, the number of complete AI tasks that can be completed per second. A complete task may contain multiple API, model, and tool calls.
P9595% of requests complete within this time; used to observe the experience of most users.
P9999% of requests complete within this time; used to observe a small number of slow requests and tail latency.
Success rateThe proportion of successfully completed requests or tasks among all requests. Capacity conclusions require a success rate of at least 99%.
Runtime service instanceOne running Runtime service container. Multiple instances can share the task load.
Concurrent task countThe maximum number of tasks one Runtime service executes at the same time; it is not the number of CPU cores.

Business Capacity by Machine Size

The following table supports machine selection. It assumes that AOS Work and Runtime use separate dedicated machines, with approximately 15%–25% production safety capacity reserved. Sandbox requires more memory, so the memory configurations are intentionally conservative.

Overall Capacity Overview

Machine sizeStable AOS Work API volumeRuntime ordinary tasks (Sandbox disabled)Light Sandbox tasksMedium Sandbox tasksHeavy Sandbox tasksApplicable scenario
4 cores / 16 GB180–250 requests/s20–35 tasks/s1–3 tasks/s0.5–1.5 tasks/s0.1–0.5 tasks/sDevelopment, testing, demonstrations, low-traffic business
8 cores / 32 GB320–430 requests/s45–75 tasks/s3–7 tasks/s1–3 tasks/s0.2–0.8 tasks/sSmall- to medium-scale production, lightweight AI tools
16 cores / 64 GB450–500 requests/s140–160 tasks/s8–20 tasks/s3–8 tasks/s0.5–2 tasks/sCurrent recommended production baseline
32 cores / 128 GB480–600 requests/s220–300 tasks/s16–36 tasks/s6–15 tasks/s1–4 tasks/sMedium- to large-scale production, many concurrent tool tasks
Machine sizeAOS Work recommendationRuntime ordinary-task recommendationRuntime Sandbox recommendationMain resource risk
4 cores / 16 GB1 AOS Work service1 Runtime service, executing 16–32 ordinary tasks simultaneously1 Runtime service; concurrency 2 for light tasks and 1 for medium/heavy tasksLimited CPU and memory headroom; unsuitable for heavy tasks
8 cores / 32 GB1 AOS Work service1–2 Runtime services, each executing about 32 ordinary tasks simultaneously1–2 Runtime services; concurrency 4–6 for light tasks, 2–3 for medium tasks, and 1–2 for heavy tasksMonitor disk and memory during medium/heavy-task concurrency
16 cores / 64 GB1 AOS Work service4 Runtime services, each executing up to 64 ordinary tasks simultaneously4 Runtime services; concurrency 12 for light tasks, 6 for medium tasks, and 3 for heavy tasksAOS Work and Runtime compete for CPU when colocated
32 cores / 128 GBA multi-instance AOS Work design still requires validation4–8 Runtime services, each executing up to 64 ordinary tasks simultaneously8 Runtime services; concurrency 24 for light tasks, 12 for medium tasks, and 6 for heavy tasksDatabase, messaging system, and disk may reach their limits before CPU

How to Distinguish Light, Medium, and Heavy Sandbox Tasks

Task typeExampleMain consumption
Light taskQuery runtime status without extensive file I/OModel, task scheduling, and database
Medium taskWrite an approximately 8 MB file and perform multiple rounds of computationCPU, disk, and isolated-environment calls
Heavy taskWrite an approximately 32 MB file and perform intensive repeated computationCPU, disk, and resource contention between multiple isolated environments

For real business workloads that run commands for a long time, process large files, generate documents, or execute complex code, plan capacity using the medium- or heavy-task profile.

Evaluation measures

MeasurePurposeAcceptance use
QPS / req/sAOS Work interface requests per secondStable under target load without persistent errors or saturation
Run/sOrdinary Runtime tasks per second without SandboxValidate with actual model calls and external dependencies
Session/sComplete AI tasks per second with SandboxMeasure light, medium, and heavy work separately
Success rateSuccessful requests/tasks divided by all requests/tasksCapacity conclusion requires at least 99%
P50 / P95 / P99Median, typical-tail, and long-tail latencyRecord all three; set thresholds through the business SLA
CPU, memory, diskService and Sandbox headroomRetain safe headroom during peak tests; CPU count alone is not concurrency

These figures are planning references, not customer-environment commitments. Validate final capacity with target-environment tests and actual model quotas. Never apply no-Sandbox concurrency limits directly to Sandbox work; verify CPU, memory, and I/O contention when services share a host.