Skip to main content
CetiRun

Plan capacity and cost

Estimate the nodes, disks, and quota that CetiRun Agents need, and find the defaults that drive cost.

Use this page to estimate the size of a cluster before you deploy it. The numbers are the defaults of the charts and of the cluster template. They do not include the overhead of the Kata virtual machine or of the Istio sidecar. Measure the actual use of your Agents before you size production.

Resources of one Agent

An OpenClaw or Hermes Agent runs in one Pod. These are the default requests and limits of its containers:

ContainerRequestLimit
Agent4 CPU, 8 GiB8 CPU, 16 GiB
Desktop, on by default0.5 CPU, 1 GiB2 CPU, 4 GiB
Session logger, on by default0.01 CPU, 64 MiB0.1 CPU, 128 MiB

The Pod requests about 4.5 CPU and 9 GiB, plus the Istio sidecar. The agent chart sets no resources for the sidecar, so AKS managed Istio applies its defaults. Each OpenClaw or Hermes Agent also has a 100 GiB HOME disk of the default StorageClass. Custom Agents use the same default requests. Their HOME disk has the size and the StorageClass of customRuntime.storageSize and customRuntime.storageClass, which make deploy requires. A Custom Agent also has a terminal Deployment with a request of 0.05 CPU and 64 MiB.

To change the resources of all Agents, set resources in platform.values.cetirun-operator.cetirun.helmValues. Sandbox Agents use the resources of their Sandbox instead.

The kata-vm-isolation RuntimeClass of AKS can add a fixed overhead to each Pod. To read it, run this command:

kubectl get runtimeclass kata-vm-isolation -o jsonpath='{.overhead}'

Agents for each node

The CPU request usually limits the number of Agents on a node:

PoolDefault VM sizeAgents for each node
agentStandard_D16s_v6, 16 vCPUsAbout 3
agent2Standard_D32s_v6, 32 vCPUsAbout 6

With the minimum node counts, the agent pool holds about 45 Agents and the agent2 pool about 18 Agents. CetiAdmin, which make deploy enables by default, uses the default requests and counts as one of these Agents. The platform workloads, other than OAuth2 Proxy and its session store, also run on these pools. The autoscaler adds nodes up to the maximum count of each pool, if the vCPU quota of the region allows it.

A node with 4 vCPUs cannot run an Agent with the default requests. If you select a smaller VM size, also lower the resources of the Agents.

Each HOME disk is an Azure data disk. A VM can attach only a limited number of data disks, and the limit depends on the VM size. This limit can be lower than the CPU limit for small VM sizes.

Check the vCPU quota

At their minimum counts, the default node pools have 20 nodes and 352 vCPUs of the Dsv6 family:

  • 2 system nodes with 8 vCPUs
  • 15 agent nodes with 16 vCPUs
  • 3 agent2 nodes with 32 vCPUs

Before you deploy, compare these numbers with the vCPU quota of the region in the target subscription:

az vm list-usage --subscription "<subscription-id>" \
  --location your-approved-region --output table

Examine the total regional vCPUs and the vCPUs of the Dsv6 family. For a smaller cluster, set lower minimum counts or smaller VM sizes in the parameter file. Refer to Infrastructure. Also reserve quota for surge nodes during upgrades, beyond the steady-state pool maxima. The template sets maxSurge: '33%' on every pool; refer to the small test environment example for the calculation.

Platform workloads

WorkloadReplicasRequest of each replica
Operator20.1 CPU, 128 MiB
Sandbox admission server20.1 CPU, 128 MiB
Portal20.1 CPU, 256 MiB
AI Gateway2None. Set platform.values.cetirun-ai-gateway.resources
AI Gateway PostgreSQL and Valkey1 eachNone. PostgreSQL has a 100 GiB disk by default
Agent Identity Broker20.1 CPU, 128 MiB, with the Entra auth sidecar
Connections MCP20.05 CPU, 64 MiB
OAuth2 Proxy, on the system pool20.1 CPU, 128 MiB
Session store of OAuth2 Proxy, on the system pool10.05 CPU, 64 MiB, and a 1 GiB disk
ADX-Mon collector1 on each node0.05 CPU, 128 MiB. It keeps up to 2 GiB of unsent data on the disk of the node
ADX-Mon ingestor10.1 CPU, 256 MiB, and a 16 GiB disk
ADX-Mon alerter, only with an alert receiver10.01 CPU, 64 MiB
Telemetry program and kube-state-metrics of the ADX-Mon collection1 each0.01 CPU, 64 MiB

The README of the AI Gateway chart gives measured values and a starting size. Refer to Resources.

Defaults that drive cost

ItemDefaultWhere to change it
AKS pricing tierPremiumskuTier in the cluster parameter file
Node pools20 nodes and 352 vCPUs at the minimum countsVM sizes and counts in the cluster parameter file. Refer to Infrastructure
Node OS disks128 GB for each nodeThe OS disk parameters of the cluster template
HOME disks100 GiB for each AgentFor new OpenClaw and Hermes Agents, persistence.size in platform.values.cetirun-operator.cetirun.helmValues. For Custom Agents, platform.values.cetirun-operator.customRuntime.storageSize
AI Gateway database100 GiBpostgresql.bundled.persistence.size. You cannot change it after the first run
Azure Data ExplorerA new Kusto cluster of the Dev(No SLA)_Standard_E2a_v4 SKU (adxMode: create). It keeps the logs for 90 days, the metrics for 30 days, and the Agent logs for 14 daysThe adx parameters. Refer to Azure Data Explorer
Agents of each user1platform.values.cetirun-portal.features.maxInstancesPerUser
Monthly model budget of each new Agent key10000 USDplatform.values.cetirun-operator.aiGateway.defaultBudget. Agent Policies set their own budgets

Model use is a large variable cost. The Operator sets the default budget when it creates the key of an Agent. A later change of the default does not change the keys that exist. Refer to Choose a model and Policy-bound Teams.

A small test cluster

For a test cluster, start from the example parameter file in Cluster parameter file. Its agent nodes have 8 vCPUs, so with the default Agent requests each node holds one Agent.