oxidecomputer / oxidecomputer/omicron
Anti-Affinity groups should allow memberships consisting of affinity groups
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
Related to https://github.com/oxidecomputer/omicron/issues/1705
The first iteration of Affinity/Anti-Affinity groups only uses a membership type of "instance UUID".
This allows clients to make individual instances affine or anti-affine from one another, but it isn't yet possible to describe "I want this group of instances to be anti-affine from one another".
This feature was described in RFD 522:
An Anti-Affinity Group is a collection of Interfaces or Affinity Groups that are intended to be deployed in different fault domains
This issue tracks that feature. This should be possible by adding a new anti-affinity member type.
Note that this feature is asymmetric with respect to affinity groups. There is currently no intention to allow "affinity groups consisting of anti-affinity groups" (since that construction wouldn't make much sense).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading RFD 522's anti-affinity-group section and the related issue #1705 to understand the existing membership model. Trace the current affinity and anti-affinity group API entry points and tests, then identify the changes needed for a new anti-affinity member type. Done means anti-affinity groups can contain affinity groups while the unsupported reverse relationship remains disallowed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100