Skip to content

Feature Request: add --cells-to-watch flag to VTOrc #19353

@MargaretMorehead

Description

@MargaretMorehead

Feature Description

VTOrc currently supports scoping its monitoring to specific keyspaces/shards via --clusters-to-watch, but there is no way to scope it by cell. In multi-cell deployments, operators may want to run separate VTOrc instances that each monitor only a subset of cells.

This proposes adding a --cells-to-watch flag that accepts a comma-separated list of cells. When set, VTOrc will only discover and monitor tablets in the specified cells. When unset, the existing behavior of watching all cells is preserved. The flag works in combination with --clusters-to-watch — both filters are applied when both are set.

Use Case(s)

  • Running different Vitess versions in different cells and needing version-matched VTOrc instances to prevent cross-version recovery operations. This is our use case at HubSpot.
  • Reducing expensive topo reads by limiting VTOrc to only fetch tablets from specified cells instead of all known cells (see RFC: VTOrc to support cell locality #18982)
  • Running a dedicated VTOrc instance per cell/region to reduce blast radius and improve isolation

Metadata

Metadata

Labels

Component: VTOrcVitess Orchestrator integrationType: EnhancementLogical improvement (somewhere between a bug and feature)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions