Skip to content

Make Nexus' representation of Sleds durable #227

@smklein

Description

@smklein

Currently, Nexus uses an in-memory representation of Sled Agents which is not durable. It is populated as sled-agents self-report to Nexus, but cannot track "agents which may not be online".

This is a tracking issue for "durable representations of Sled Agents".

  • Add Database representation for Sleds
  • Add Diesel bindings for Sled objects
  • Store Sleds to DB when they come online (sled agent boots)
  • Load Sleds from DB when Nexus boots, and attempt to establish contact with them (nexus boots)

Longer-term, we can also grapple with questions like:

  • When should sleds be removed from Nexus' DB representation?
  • How can Nexus keep track of the "liveness" of a Sled, if the connection said sled is severed (goes offline)?

Metadata

Metadata

Assignees

Labels

Sled AgentRelated to the Per-Sled Configuration and ManagementdatabaseRelated to database accessnexusRelated to nexus

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions