-
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.
76512: admission: SET default_transaction_quality_of_service=[background,regular,critical] r=msirek a=msirek This commit adds support for a `default_transaction_quality_of_service` session setting which when set to `critical`, increases the priority of work submitted to admission queues from subsequent SQL requests, and when set to `background`, decreases admission queue priority of subsequent SQL requests. This commit also adds a method of controlling the admission queue priority of internal SQL requests. Now, if InternalExecutor.ExecEx is called with a nil txn and the InternalExecutorOverride parameter is passed with a valid QualityOfService setting, the new transaction will be created with the specified QualityOfService. This commit adds a `qualityOfService` field to the `activeTxn` in the [List Sessions API](https://www.cockroachlabs.com/docs/api/cluster/v2#operation/listSessions). This commit also includes the current setting of default_transaction_quality_of_service in the statement bundle built via EXPLAIN (OPT, ENV). Fixes #70295 Release note (sql change): Adds session setting `default_transaction_quality_of_service` which controls the priority of work submitted to the different admission control queues on behalf of SQL requests submitted in a session. Admission control must be enabled for this setting to have an effect, see: https://www.cockroachlabs.com/docs/v21.2/architecture/admission-control.html To increase admission control priority of subsequent SQL requests: `SET default_transaction_quality_of_service=critical;` To decrease admission control priority of subsequent SQL requests: `SET default_transaction_quality_of_service=background;` To reset admission control priority to the default session setting (in between background and critical): `SET default_transaction_quality_of_service=regular;` 76739: ui:increase timeout for statements api call r=maryliag a=maryliag Previously, the timeout for statement api was 1 minute, which was causing timeout error messages when the user selected long time periods containing a lot of data. This commit increases the timeout to 30min and adds a message when the Statement and Transactions pages are loading, indicating it could take a few minutes to load. This commit also fixes the position for the error message when the user still hits the error. New messages on Statements and Transactions page <img width="1610" alt="Screen Shot 2022-02-17 at 12 01 58 PM" src="https://user-images.githubusercontent.com/1017486/154532654-bda3d7ea-f932-49fa-85ad-d1594816ac99.png"> <img width="1634" alt="Screen Shot 2022-02-17 at 12 02 10 PM" src="https://user-images.githubusercontent.com/1017486/154532672-fa617ac2-0889-4344-b351-18ce87e45f9b.png"> Error message before <img width="1341" alt="Screen Shot 2022-02-16 at 9 27 01 AM" src="https://user-images.githubusercontent.com/1017486/154532726-20c65d32-6790-440e-9038-ddbb1543eda8.png"> after <img width="1333" alt="Screen Shot 2022-02-16 at 9 27 15 AM" src="https://user-images.githubusercontent.com/1017486/154532753-970c85be-edc5-4cb1-995d-001694ad99df.png"> Release note (ui change): Add long loading messages to SQL Activity pages. 76956: genbzl: hoist bindata sources r=irfansharif a=rickystewart Release note: None 76981: build: use TESTTIMEOUT in teamcity-test r=cucaroach a=tbg We want to be able to adjust this easily, without a round-trip through CI. Inspired by [this run], where `test` hit the default 45m timeout. [this run]: https://teamcity.cockroachdb.com/viewLog.html?buildId=4448093&buildTypeId=Cockroach_UnitTests_Test&tab=buildResultsDiv Release note: None Co-authored-by: Mark Sirek <[email protected]> Co-authored-by: Marylia Gutierrez <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information
Showing
47 changed files
with
468 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Generated by genbzl | ||
|
||
BINDATA_SRCS = [ | ||
"//pkg/roachprod/vm/aws:embedded", | ||
"//pkg/security/securitytest:embedded", | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,5 @@ bindata( | |
], | ||
metadata = True, | ||
package = "aws", | ||
visibility = ["//pkg/gen:__pkg__"], | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ bindata( | |
], | ||
metadata = True, | ||
package = "securitytest", | ||
visibility = ["//pkg/gen:__pkg__"], | ||
) |
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.