docs/RFCS/20220607_kvconnector_refactor.md
Note: this RFC document is a placeholder that describes the high-level changes incurred by an actual RFC proposal that is kept internal to CRL employees.
We would like all clusters including self-hosted and dedicated to run multitenant, albeit with just 2 tenants; this is one of the goals of the "arch unification project". To achieve this, we bring under BSL the capability to automatically define and run 2 tenants in-process.
Bring the API definition (go interface) of KV Connector
(pkg/ccl/kvccl/kvtenantccl/connector.go) under the BSL. However:
Update TestServer and the related tenant server creation code in unit tests (and cockroach demo) to use the in-memory KV Connector implementation.
Move all the unit test code that is only dependent on the ability to start multitenant servers under the BSL directories where it belongs.
This proposal makes it possible to use a BSL-only build of CockroachDB with multitenancy.
The full RFC proposal is here: https://docs.google.com/document/d/1s0PVIKFywX3G9lZ3ds8Hi51cAIHph-pp2PCcKt7iwaw/edit# (internal only)