-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
distsql: add support for partition spans in tenant
This PR adds `PartitionSpansTenant`, which assigns SQL instances to spans when distsql is in tenant mode. The current implementation is a naive round-robin approach. That is, we find all available instances in the tenant and assign each span requested by the caller to an instance in round-robin order. This is reasonable for the initial use case, backup operations, since spans must completely cover a table's span. Release note (sql change): Adds support for distributed backup in a multitenant environment that uses all available SQL pods in the tenant.
- Loading branch information
1 parent
87bd590
commit 350188b
Showing
3 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters