~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0
23 lines · 1.2 KB Raw History
{
  "lexicon": 1,
  "id": "com.publicdomainrelay.temp.compute.events.vm.memoryPressure",
  "description": "The bidder reports that the VM's host cgroup crossed a memory threshold (memory.events high or max increased); sent as the payload of a market.event, edge-triggered and capped per contract.",
  "defs": {
    "main": {
      "type": "record",
      "key": "any",
      "record": {
        "type": "object",
        "required": ["kind", "threshold", "observed", "observedAt", "createdAt"],
        "properties": {
          "kind": { "type": "string", "knownValues": ["high", "max"], "description": "The cgroup threshold crossed: high (reclaim pressure) or max (the hard limit)." },
          "threshold": { "type": "integer", "description": "The cgroup limit crossed, in bytes: memory.high or memory.max of the VM's cgroup (0 when that limit is max)." },
          "observed": { "type": "integer", "description": "memory.current in bytes when the crossing was seen." },
          "observedAt": { "type": "string", "format": "datetime" },
          "createdAt": { "type": "string", "format": "datetime" },
          "signatures": { "type": "ref", "ref": "network.attested.signature#signatures" }
        }
      }
    }
  }
}