lexicons and xrpc
- controlPlaneDown
- controlPlaneUp
- createCluster
- deleteCluster
- getKubeconfig
- listClusters
- listKubeconfigs
- revokeIdentity
- revokeKubeconfig
- subscribeClusters
- agentStart
- image
- memoryPressure
- oomKill
- publicKey
- r2Release
- r2Released
- r2Start
- requesterDid
- secrets
- secretsApplied
- secretsRequested
- secretsUpdated
- signalWebRTC
lexicon
com.publicdomainrelay.temp.compute.events.guest.memoryPressure
The guest crossed a memory threshold (edge-triggered: one record per crossing, re-armed only after the value stayed under half the threshold for 5 min; at most one per kind per 10 min and ten memory events per contract); sent as the payload of a market.event. Guest-originated only. It carries no secret. The host-side counterpart is compute.events.vm.memoryPressure.
record
| field | type | description |
|---|---|---|
kind * | string | What crossed: psi, /proc/pressure/memory some avg10; swap, the share of the guest's swap in use. knownValues ["psi","swap"] maxLength 16 |
threshold * | integer | The crossed threshold, in hundredths of a percent (psi: of some avg10; swap: of swapTotal). minimum 0 maximum 10000 |
psiSomeAvg10 | integer | /proc/pressure/memory some avg10, in hundredths of a percent; absent without PSI. minimum 0 maximum 10000 |
psiFullAvg10 | integer | /proc/pressure/memory full avg10, in hundredths of a percent; absent without PSI. minimum 0 maximum 10000 |
swapUsed * | integer | Swap in use, in bytes. minimum 0 |
swapTotal * | integer | The guest's swap, in bytes. minimum 0 |
observedAt * | string datetime | |
createdAt * | string datetime | |
signatures | network.attested.signature#signatures |
used in
guest-events: events under a receipt, lexicons-market: one row per lexicon
raw schema: lexicons/com/publicdomainrelay/temp/compute/events/guest/memoryPressure.json
{
"lexicon": 1,
"id": "com.publicdomainrelay.temp.compute.events.guest.memoryPressure",
"description": "The guest crossed a memory threshold (edge-triggered: one record per crossing, re-armed only after the value stayed under half the threshold for 5 min; at most one per kind per 10 min and ten memory events per contract); sent as the payload of a market.event. Guest-originated only. It carries no secret. The host-side counterpart is compute.events.vm.memoryPressure.",
"defs": {
"main": {
"type": "record",
"key": "any",
"record": {
"type": "object",
"required": [
"kind",
"threshold",
"swapUsed",
"swapTotal",
"observedAt",
"createdAt"
],
"properties": {
"kind": {
"type": "string",
"knownValues": [
"psi",
"swap"
],
"maxLength": 16,
"description": "What crossed: psi, /proc/pressure/memory some avg10; swap, the share of the guest's swap in use."
},
"threshold": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "The crossed threshold, in hundredths of a percent (psi: of some avg10; swap: of swapTotal)."
},
"psiSomeAvg10": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "/proc/pressure/memory some avg10, in hundredths of a percent; absent without PSI."
},
"psiFullAvg10": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "/proc/pressure/memory full avg10, in hundredths of a percent; absent without PSI."
},
"swapUsed": {
"type": "integer",
"minimum": 0,
"description": "Swap in use, in bytes."
},
"swapTotal": {
"type": "integer",
"minimum": 0,
"description": "The guest's swap, in bytes."
},
"observedAt": {
"type": "string",
"format": "datetime"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"signatures": {
"type": "ref",
"ref": "network.attested.signature#signatures"
}
}
}
}
}
}