Skip to content

Commit 5d6a056

Browse files
craig[bot]kyle-a-wongrail
committed
147994: sqlstats: lower default sql stats flush batch size r=kyle-a-wong a=kyle-a-wong In the drt-scale cluster, a batch size of 50 caused sql stats flushing to be slow because it increased contention when sql stats flushes occurred. This is because in a cluster of this size, there is a higher chance for an individual node to be flushing at any given time. We observed that lowering the batch size to 10 decreased the amount of contention while still providing decreased flush latency. Epic: None Release note: None 148015: release: retry rcodesign notary-submit in macos signing scripts r=celiala a=rail Previously, the `rcodesign notary-submit` command was run without retry logic, which could lead to failures if the submission encountered transient issues. This commit introduces a retry mechanism to improve the robustness of the signing process. Release note: none Epic: none Co-authored-by: Kyle Wong <[email protected]> Co-authored-by: Rail Aliiev <[email protected]>
3 parents d20da2a + e615c1d + 110c653 commit 5d6a056

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build/teamcity/internal/cockroach/release/publish/sign_staged_macos_release_on_linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fi
1515

1616
dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))"
1717
source "$dir/teamcity-support.sh" # For log_into_gcloud
18+
source "$dir/shlib.sh"
1819

1920
curr_dir=$(pwd)
2021

@@ -72,7 +73,7 @@ for product in cockroach cockroach-sql; do
7273
tar -czf "$target" "$base"
7374

7475
zip crl.zip "$base/$product"
75-
rcodesign notary-submit \
76+
retry rcodesign notary-submit \
7677
--api-key-file "$curr_dir/.secrets/api_key.json" \
7778
--wait \
7879
crl.zip

build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-sign.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fi
1717

1818
dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))"
1919
source "$dir/release/teamcity-support.sh"
20+
source "$dir/shlib.sh"
2021

2122
tc_start_block "Variable Setup"
2223

@@ -83,7 +84,7 @@ for product in cockroach cockroach-sql; do
8384
--code-signature-flags runtime \
8485
"$product-$build_name.$platform/$product"
8586
zip -r crl.zip "$product-$build_name.$platform/$product"
86-
rcodesign notary-submit --api-key-file "$secrets_dir/api_key.json" --wait crl.zip
87+
retry rcodesign notary-submit --api-key-file "$secrets_dir/api_key.json" --wait crl.zip
8788
tar -czf "$product-$build_name.$platform.tgz" "$product-$build_name.$platform"
8889
shasum --algorithm 256 "$product-$build_name.$platform.tgz" > "$product-$build_name.$platform.tgz.sha256sum"
8990
gsutil cp "$product-$build_name.$platform.tgz" "gs://$gcs_bucket/$product-$build_name.$platform.tgz"

pkg/sql/sqlstats/persistedsqlstats/cluster_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var SQLStatsFlushBatchSize = settings.RegisterIntSetting(
3030
settings.ApplicationLevel,
3131
"sql.stats.flush.batch_size",
3232
"the number of rows to flush per upsert",
33-
50,
33+
10,
3434
settings.NonNegativeInt)
3535

3636
// MinimumInterval is the cluster setting that controls the minimum interval

0 commit comments

Comments
 (0)