Skip to main content

Module node

Module node 

Source
Expand description

ai.hyprstream.placement.node — a schedulable node advertised by an account.

{
  "lexicon": 1,
  "id": "ai.hyprstream.placement.node",
  "defs": { "main": { "type": "record", "key": "tid", "record": {
    "type": "object",
    "required": ["repo", "labels", "resources", "groups", "createdAt"],
    "properties": {
      "repo":      { "type": "string", "format": "at-uri" },
      "labels":    { "type": "array", "items": { "type": "object",
                       "required": ["key", "value"], "properties": {
                         "key":   { "type": "string" },
                         "value": { "type": "string" } } } },
      "resources": { "type": "array", "items": { "type": "object",
                       "required": ["name", "capacity"], "properties": {
                         "name":     { "type": "string" },
                         "capacity": { "type": "string" } } } },
      "groups":    { "type": "array", "items": { "type": "string", "format": "at-uri" } },
      "createdAt": { "type": "string", "format": "datetime" }
    }
}}}

groups are at-uris of ai.hyprstream.placement.group records the node has consented to be placed within. resources[].capacity carries a Kubernetes quantity string (e.g. "16", "100m", "8Gi").

Structs§

Label
A {key, value} label pair.
NodeRecord
An ai.hyprstream.placement.node record.
Resource
A {name, capacity} resource advertisement. capacity is a k8s-quantity.

Constants§

COLLECTION_NSID
The NSID of this record type.