oxidecomputer / oxidecomputer/omicron

Implement new mechanism for populating `rack` table to support multi-rack

Open
#10,971 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

multi-rack
Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

We currently depend on PopulateRack in Nexus to insert a row into the rack table, and Nexus does this using its own local rack ID. In multi-rack, this will not be wrong per se, but it won't be sufficient since not every rack will have a Nexus instance running on it. We'll need to create some other mechanism to handle the insertion of rows into the rack table without depending on the locally configured rack ID, and we'll have to figure out how to trigger this mechanism when racks that don't have any Nexus nodes running on them join a cluster.

Not sure what the best way to implement this is, and whether it will still use the Populate trait or some other framework, but I'm creating this issue as a placeholder for whatever work will be required to design and implement this functionality.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Nexus's PopulateRack mechanism and the rack table insertion path, then examine whether the Populate trait can support racks without Nexus nodes. Define how cluster events trigger insertion for those racks; done means a designed and implemented mechanism populates every joining rack without relying on a locally configured rack ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.