Feature Description
As a user of VTOrc, I would like to be able to disable ERS on a single keyspace. Currently disabling ERS recoveries is possible using the --allow-emergency-reparent flag (restart required), or the HTTP API (need to update every instance individually), but these approaches have the drawback of affecting all keyspaces watched
--allow-emergency-reparent
Whether VTOrc should be allowed to run emergency reparent operation when it detects a dead primary (default true)
This RFC/feature request proposes:
- New
vtctldclient RPCs: EnableVtorcEmergencyReparent <keyspace> and DisableVtorcEmergencyReparent <keyspace> (or similar)
- New stats to indicate which keyspaces have ERS disabled. This will be useful to avoid forgetting it is disabled using external monitoring
- VTOrc stores the ERS enabled/disabled state and considers this on recoveries
The RFC in it's current state is implemented by this PR. Your feedback/review is appreciated! 🙇
Use Case(s)
A VTOrc user with many keyspaces per-instance that would like to disable ERS recoveries by-keyspace, without restarting VTOrcs
Feature Description
As a user of VTOrc, I would like to be able to disable ERS on a single keyspace. Currently disabling ERS recoveries is possible using the
--allow-emergency-reparentflag (restart required), or the HTTP API (need to update every instance individually), but these approaches have the drawback of affecting all keyspaces watchedThis RFC/feature request proposes:
vtctldclientRPCs:EnableVtorcEmergencyReparent <keyspace>andDisableVtorcEmergencyReparent <keyspace>(or similar)The RFC in it's current state is implemented by this PR. Your feedback/review is appreciated! 🙇
Use Case(s)
A VTOrc user with many keyspaces per-instance that would like to disable ERS recoveries by-keyspace, without restarting VTOrcs