oxidecomputer / oxidecomputer/omicron

Anti-Affinity groups should allow memberships consisting of affinity groups

Open
#7,567 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.