Skip to content

server: equip the mt-start-sql server code with a drain process #74412

@knz

Description

@knz

Epic CRDB-11087

This is a pre-req to solving #72045

To add a feature to "execute some SQL statements before a node starts draining" (#72045), we must have a draining process to start with. The start and start-single-node commands provide that, but mt start-sql doesn't.

Describe the solution you'd like

We want to provide a Drain RPC and a shutdown sequence to the mt start-sql server process that is using a common code path with the one used for regular DB nodes.

Metadata

Metadata

Assignees

Labels

A-cli-serverCLI commands that pertain to CockroachDB server processesA-server-architectureRelates to the internal APIs and src org for server codeA-server-start-drainPertains to server startup and shutdown sequencesC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)P-1Issues/test failures with a fix SLA of 1 monthT-server-and-securityDB Server & Security

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions