planetscale / planetscale/vitess-operator

Run PlannedReparentShard if primary vttablet is shutting down

Open
#276 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
372
Forks
102
Avg merge
3d 5h
Merged PRs (30d)
15

Description

If a primary vttablet is shutting down, it could be nice to run a PlannedReparentShard command.

It could occurs in multiple scenario where the user may or may not be able to run it by himself. It could also avoid a mistake from the user where he forgot to run it before shutting down the vttablet.

Those scenario could be:

  • Node drain
  • Pod eviction
  • other?

I was thinking to add a preStop in vttablet statefulset, but maybe there is a more elegant solution.

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

No source files or tests are named. Start by tracing how the vttablet StatefulSet handles shutdown and how PlannedReparentShard can be invoked; compare node drain and pod eviction behavior. Done means the operator safely handles the relevant shutdown scenarios without requiring a manual command, with tests covering the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.