Skip to main content

WasmModulePolicy

Per-app guardrails / platform ceilings for compute modules. A missing row means platform defaults.

type WasmModulePolicy {
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

WasmModulePolicy.appId ● BigInt! non-null scalar

The app (tenant) the policy applies to.

WasmModulePolicy.enabled ● Boolean! non-null scalar

App-wide kill switch for all compute modules.

WasmModulePolicy.maxModules ● Int! non-null scalar

Max modules the app may define.

WasmModulePolicy.maxTickHz ● Float! non-null scalar

Max tick rate (Hz) any module may request.

WasmModulePolicy.fuelPerTick ● BigInt! non-null scalar

Fuel budget per tick call.

WasmModulePolicy.fuelPerInvoke ● BigInt! non-null scalar

Fuel budget per invoke/event call.

WasmModulePolicy.maxMemoryMb ● Int! non-null scalar

Max guest linear memory (MB).

WasmModulePolicy.maxRunMs ● Int! non-null scalar

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

WasmModulePolicy.maxDbOpsPerTick ● Int! non-null scalar

Max host data-API operations per tick.

WasmModulePolicy.maxEgressMsgsPerMin ● Int! non-null scalar

Max replication messages a module may emit per minute.

WasmModulePolicy.maxEgressBytesPerMin ● BigInt! non-null scalar

Max replication bytes a module may emit per minute.

WasmModulePolicy.failureThreshold ● Int! non-null scalar

Consecutive failures that open a module circuit.

WasmModulePolicy.cooldownMs ● Int! non-null scalar

Cooldown (ms) while a module circuit is open.

WasmModulePolicy.statePersistMinIntervalMs ● Int! non-null 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.

WasmModulePolicy.maxStateWritesPerMin ● Int! non-null scalar

Max state saves a module may write per minute. Saves beyond this are refused and ck.state_set returns false.

WasmModulePolicy.maxStateBytesPerMin ● BigInt! non-null scalar

Max state bytes a module may write per minute. Saves beyond this are refused and ck.state_set returns false.

Returned By

computeModulePolicy query ● computeSetPolicy mutation