Skip to main content

SetComputePolicyInput

Set the per-app compute policy (guardrails / platform ceilings). Omitted fields keep their current (or default) values.

input SetComputePolicyInput {
appId: BigInt!
enabled: Boolean
maxModules: Int
maxTickHz: Float
fuelPerTick: BigInt
fuelPerInvoke: BigInt
maxMemoryMb: Int
maxRunMs: Int
maxDbOpsPerTick: Int
maxEgressMsgsPerMin: Int
maxEgressBytesPerMin: BigInt
failureThreshold: Int
cooldownMs: Int
statePersistMinIntervalMs: Int
maxStateWritesPerMin: Int
maxStateBytesPerMin: BigInt
}

Fields

SetComputePolicyInput.appId ● BigInt! non-null scalar

The app (tenant).

SetComputePolicyInput.enabled ● Boolean scalar

App-wide kill switch for all compute modules.

SetComputePolicyInput.maxModules ● Int scalar

Max modules the app may define.

SetComputePolicyInput.maxTickHz ● Float scalar

Max tick rate (Hz) any module may request.

SetComputePolicyInput.fuelPerTick ● BigInt scalar

Fuel budget per tick call.

SetComputePolicyInput.fuelPerInvoke ● BigInt scalar

Fuel budget per invoke/event call.

SetComputePolicyInput.maxMemoryMb ● Int scalar

Max guest linear memory (MB).

SetComputePolicyInput.maxRunMs ● Int scalar

Wall-clock watchdog budget per entry call (ms).

SetComputePolicyInput.maxDbOpsPerTick ● Int scalar

Max host data-API operations per tick.

SetComputePolicyInput.maxEgressMsgsPerMin ● Int scalar

Max replication messages a module may emit per minute.

SetComputePolicyInput.maxEgressBytesPerMin ● BigInt scalar

Max replication bytes a module may emit per minute.

SetComputePolicyInput.failureThreshold ● Int scalar

Consecutive failures that open a module circuit.

SetComputePolicyInput.cooldownMs ● Int scalar

Cooldown (ms) while a module circuit is open.

SetComputePolicyInput.statePersistMinIntervalMs ● Int scalar

Minimum gap in milliseconds between saves of a module’s state. Saves made inside the window are combined and the newest one is written, so a module that saves every tick still only writes once per window.

SetComputePolicyInput.maxStateWritesPerMin ● Int scalar

Max state saves a module may write per minute.

SetComputePolicyInput.maxStateBytesPerMin ● BigInt scalar

Max state bytes a module may write per minute.

Member Of

computeSetPolicy mutation