moby / moby/swarmkit

Consider increasing ElectionTicks value

Open
#1,622 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3.7k
Forks
676
Avg merge
4d 9h
Merged PRs (30d)
6

Description

In #1364 there was some discussion about the current value of ElectionTicks (3 seconds) being too low. This can trigger unnecessary leader elections. We should consider increasing ElectionTicks to something more like 9 seconds. This would mean that the swarm could be unavailable for slightly longer before performing a leader election to recover, but spurious leader elections would happen less often.

Also, ElectionTicks should be configurable. This is tracked in #1326.

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 the ElectionTicks definition and reading the discussion in #1364. Review #1326 to understand the separate configurability work, then determine how an increased default would affect leader-election recovery and spurious elections. Done means the intended default and configuration scope are settled and validated against the issue’s tradeoff.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.