Skip to content

Commit

Permalink
Merge #75707
Browse files Browse the repository at this point in the history
75707: rfcs: sqlproxy connection migration r=JeffSwenson a=jaylim-crl

_[RFC Text](https://github.com/cockroachdb/cockroach/blob/edb29eb5da9b9dd85f2c8f8f4b0c174d96635e26/docs/RFCS/20220129_sqlproxy_connection_migration.md)_

This proposal describes the connection migration mechanism within the SQL
Proxy that allows us to migrate SQL connections from one SQL pod to another
by building on top of the session migration work by the SQL Experience team.

This RFC is only scoped to _how_ to perform the migration from one SQL pod to
another within the SQL proxy. The details of _when_ to perform the migration
will be discussed in a follow-up RFC. Note that the main use-case here is for
CockroachDB Serverless, and we should optimize for that.

What this will eventually solve:
- rude disconnects during Serverless scale-down events
- load imbalance during steady state and Serverless scale-up events

From the user's perspective, the connection should remain usable without
interruption, and there will be better resource utilization across all
provisioned SQL pods.

This RFC has already received some reviews in an earlier form of an internal 
Google Doc, [Proxy Connection Migration](https://docs.google.com/document/d/1pOl4lLOmEdSLkklCdqzksRGqvQ5galAAXrvTu61SfRc/edit).

Release justification: RFC/docs only change.

Release note: None

Co-authored-by: Jay <[email protected]>
  • Loading branch information
craig[bot] and jaylim-crl committed Mar 19, 2022
2 parents d84f07e + 8ce1d8a commit b3525c9
Showing 1 changed file with 474 additions and 0 deletions.
Loading

0 comments on commit b3525c9

Please sign in to comment.