cockroachdb / cockroachdb/cockroach

multi-tenant: Enhanced DistSQL separate-process MR clusters

Open
#110,734 0 comments 0 reactions 0 assignees View on GitHub
A-multitenancy C-enhancement T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In non-multi-tenant multi-region clusters, DistSQL will try to route requests to the local node if a suitable replica exists there. In multi-tenancy we don't currently take advantage of this optimization.

The ability to do so for shared-process multi-tenancy is tracked in #109522. For separate-process multi-tenancy however, the optimization is trickier to implement, as we'd need to determine if the given SQL pod is co-located with a KV node which contains a suitable replica. While tricky to implement, this enhancement has the potential to provide a significant performance impact over the current approach where nodes in the same locality (region/zone) are favoured.

Jira issue: CRDB-31581
Epic: CRDB-10360

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.