-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: support SQL disk spilling in tenants
Previously, temp storage for SQL tenants was configured to point to memory with a limit of 100MB. As a result, all ephemeral data when processing large queries end up going to memory, and there was no way to configure this to point to disk. This commit changes that behavior, and the default temp storage for SQL tenants is now the same as SQL for dedicated, i.e. disk, with a limit of 32GB. The operator can configure this through the `--max-disk-temp-storage` flag. Release note (cli change): `cockroach mt start-sql` will now support the following flags to configure ephemeral storage for SQL when processing large queries: `--store`, `--temp-dir`, and `--max-disk-temp-storage`. Release note (sql change): SQL tenants will now spill to disk by default when processing large queries, instead of memory.
- Loading branch information
1 parent
c52d1c3
commit af5a5a5
Showing
3 changed files
with
39 additions
and
47 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