forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instancestorage: asynchronously pre-allocate instance IDs in sql_inst…
…ances Related to cockroachdb#85737. Previously, when a SQL pod starts up, we will allocate an instance ID for it synchronously. This can be a problem for multi-region setup because that would now involve a read and write across all regions. This commit is part of the work to make the system.sql_instances table REGIONAL BY ROW to reduce cold start times. Here, we would asynchronously pre-allocate instance IDs, and the startup process will then claim an ID for the SQL pod. Once the sql_instances table is made REGIONAL BY ROW, we can update the logic to pre-allocate for every region, and only perform a regional lookup when claiming an ID. Epic: None Release note (sql change): The `system.sql_instances` table now includes pre-allocated ID entries, where all the fields except `id` will be NULL.
- Loading branch information
1 parent
e1a8ed6
commit ed4742e
Showing
12 changed files
with
1,182 additions
and
201 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
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
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
Oops, something went wrong.