apple / apple/foundationdb

Desired teams per server when replica factor is 2

Open
#2,937 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

We typically use the replica factor as 3 when we calculate the survival chance at simultaneous failures.
When the replica factor decreases from 3 to 2, the number of all possible teams decreases, which in turn decreases the survival chance.

- [ ] What should the `DESIRED_TEAMS_PER_SERVER` be when replica factor changes to 2?
- [x] Does the team collection work without error when the knob `DESIRED_TEAMS_PER_SERVER` is changed to value not 5 or 1. Right now, it is only tested for value 5 and 1.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the team collection logic and the existing tests for DESIRED_TEAMS_PER_SERVER values 5 and 1. Determine the expected value when the replica factor is 2, verify that team collection works with another knob value, and add coverage for the agreed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.