server: equip the mt-start-sql
server code with a drain process
#74412
Labels
A-cli-server
CLI commands that pertain to CockroachDB server processes
A-server-architecture
Relates to the internal APIs and src org for server code
A-server-start-drain
Pertains to server startup and shutdown sequences
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-server-and-security
DB Server & Security
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
andstart-single-node
commands provide that, butmt 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.The text was updated successfully, but these errors were encountered: