oxidecomputer / oxidecomputer/omicron

CONTROL_PLANE_STORAGE_BUFFER is larger than virtual-hardware vdevs and isn't configurable

Open
#7,979 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Development clusters set up using the instructions in how-to-run.adoc create a set of vdevs that serve as the fake sled's M.2 and U.2 storage devices. By default these vdevs are 20 GiB.

Nexus (as of the recent disk exhaustion prevention work) defines a CONTROL_PLANE_STORAGE_BUFFER constant that sets aside 250 GiB on each U.2 for control plane storage. This doesn't prevent the control plane from coming up, but it does render the resulting environment more or less unusable: all attempts to create disks or upload images to it will return 507 Insufficient Capacity, since all of the U.2s appear to be oversubscribed from the outset.

It's possible to work around this by patching CONTROL_PLANE_STORAGE_BUFFER to 0 and rebuilding Nexus, but it would be nice to make this configurable somehow (similar to what we do for reservoir sizes, though those are sled-agent tunables and not Nexus tunables).

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 locating Nexus's CONTROL_PLANE_STORAGE_BUFFER definition and compare it with the reservoir-size configuration and the development vdev sizes described in docs/how-to-run.adoc. The change is done when the buffer can be configured for development clusters and disk creation or image uploads no longer immediately return 507 Insufficient Capacity.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.