socialweb.computer

Request and provide VMs on an atproto compute market.

lexicons and xrpc

lexicon

com.publicdomainrelay.temp.compute.events.vm.memoryPressure

record key any

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.

record

fieldtypedescription
kind *string
The cgroup threshold crossed: high (reclaim pressure) or max (the hard limit).
knownValues ["high","max"]
threshold *integer
The cgroup limit crossed, in bytes: memory.high or memory.max of the VM's cgroup (0 when that limit is max).
observed *integer
memory.current in bytes when the crossing was seen.
observedAt *string datetime
createdAt *string datetime
signaturesnetwork.attested.signature#signatures

used in

guest-events: events under a receipt, lexicons-market: one row per lexicon, The protocol spec

raw schema: lexicons/com/publicdomainrelay/temp/compute/events/vm/memoryPressure.json
{
  "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"
          }
        }
      }
    }
  }
}