Skip to main content

CpComputePlatformCeilings

Operator-set platform ceilings for the per-app WASM compute policy. Each field caps the matching wasm_module_policy knob platform-wide: game-api rejects computeSetPolicy values above the ceiling. A null field means no operator override is stored — game-api falls back to its COMPUTE_PLATFORM_MAX_* env var (bootstrap default), then to the built-in code default. Edits propagate to game-api replicas via replica sync and apply within ~30 seconds, without a game-api restart.

type CpComputePlatformCeilings {
maxModules: Int
maxTickHz: Int
fuelPerTick: BigInt
fuelPerInvoke: BigInt
maxMemoryMb: Int
maxRunMs: Int
maxDbOpsPerTick: Int
maxEgressMsgsPerMin: Int
maxEgressBytesPerMin: BigInt
updatedAt: DateTime!
updatedByUserId: String
}

Fields

CpComputePlatformCeilings.maxModules ● Int scalar

Max compute modules per app (wasm_module_policy.max_modules ceiling). Null = no override (game-api bootstrap default 100).

CpComputePlatformCeilings.maxTickHz ● Int scalar

Max tick trigger rate in Hz per module (max_tick_hz ceiling). Null = no override (game-api bootstrap default 60).

CpComputePlatformCeilings.fuelPerTick ● BigInt scalar

Max deterministic fuel budget per tick (fuel_per_tick ceiling; decimal string). Null = no override (game-api bootstrap default 10000000000).

CpComputePlatformCeilings.fuelPerInvoke ● BigInt scalar

Max deterministic fuel budget per invoke (fuel_per_invoke ceiling; decimal string). Null = no override (game-api bootstrap default 50000000000).

CpComputePlatformCeilings.maxMemoryMb ● Int scalar

Max WASM linear memory per module instance in MiB (max_memory_mb ceiling). Null = no override (game-api bootstrap default 512).

CpComputePlatformCeilings.maxRunMs ● Int scalar

Max wall-clock watchdog deadline per entry call in milliseconds (max_run_ms ceiling). Null = no override (game-api bootstrap default 5000).

CpComputePlatformCeilings.maxDbOpsPerTick ● Int scalar

Max host data-API operations per tick (max_db_ops_per_tick ceiling). Null = no override (game-api bootstrap default 500).

CpComputePlatformCeilings.maxEgressMsgsPerMin ● Int scalar

Max module-emitted replication messages per minute (max_egress_msgs_per_min ceiling). Null = no override (game-api bootstrap default 60000).

CpComputePlatformCeilings.maxEgressBytesPerMin ● BigInt scalar

Max module-emitted replication bytes per minute (max_egress_bytes_per_min ceiling; decimal string). Null = no override (game-api bootstrap default 100000000).

CpComputePlatformCeilings.updatedAt ● DateTime! non-null scalar

When the ceilings row was last updated (UTC).

CpComputePlatformCeilings.updatedByUserId ● String scalar

users.user_id of the operator who last updated the ceilings. Null when never edited.

Returned By

cpComputePlatformCeilings query ● cpSetComputePlatformCeilings mutation