planetscale / planetscale/vitess-operator

FEATURE: Operator rolling restart on disk resize

Open
#740 0 comments 0 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

Currently, the Vitess Operator does not automatically perform a rolling restart of vttablets when the disk size of a keyspace is increased. As a result, we need to manually delete pods and carefully track which pod is the primary to ensure it is deleted last.

This manual operation becomes especially painful when dealing with multiple shards, turning it into a significant operational headache ("nightmare") that is error-prone and time-consuming.

Proposed Feature:
Introduce functionality in the Vitess Operator to automatically trigger a rolling restart of all vttablets in a keyspace after a disk resize. This would ensure that pods are restarted in the correct order, maintaining primary availability and reducing the risk of manual errors. Similar as it does when keyspace resources are increased or config updated.

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 examining the existing rolling-restart behavior used when keyspace resources increase or configuration is updated. Trace how disk-size changes are detected and how vttablets are ordered, then verify that a disk resize triggers an automatic restart while preserving primary availability across multiple shards.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
databases, infrastructure
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.