forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…achdb#120529 119819: status: export metrics about MemStats into timeseries r=lyang24 a=lyang24 This commit exposes 5 metrics into cockroachdb's RuntimeStatSampler timeseries. The added metrics are MemStackSysBytes, HeapFragmentBytes, HeapReservedBytes, HeapReleasedBytes, TotalAlloc. These metrics are derived from rumtime/metrics. Fixes: cockroachdb#96717 Relase note: None 120384: sql: add FORCE_INVERTED_INDEX hint r=DrewKimball a=mgartner #### sql/parser: add parse-no-verify test command The `parse-no-verify` test command has been added to data-driven parser tests. In addition, the `error` test command now asserts that parsing the statement results in an error. Release note: None #### sql/parser: move index hint tests to new file This is purely a mechanical movement of parser tests with index hints into a new file. Release note: None #### sql/parser: support FORCE_INVERTED_INDEX hint This commit adds parsing support for the `FORCE_INVERTED_INDEX` hint. The hint currently has no effect. Release note: None #### sql: support FORCE_INVERTED_INDEX hint Epic: None Release note (sql change): The `FORCE_INVERTED_INDEX` hint is now supported. This makes the optimizer prefer a query plan scan over any inverted index of the hinted table. The query will result in an error if no such query plan can be generated. 120493: drt: cleanup workload runner scripts r=itsbilal a=ajstorm Cleanup the workload runner scripts to: - Add the chaos test to systemd-run - Fix a few errors in cct_tpcc_drop - Add kv and tpcc scripts Release note: none Epic: none 120529: util/mon: reduce sizes of BytesMonitor and BoundAccount structs r=yuzefovich a=yuzefovich This PR audits BytesMonitor and BoundAccount structs in order to clean up their creation and reduce their memory footprint. In particular, BytesMonitor goes from 208 bytes to 160 bytes and BoundAccount from 32 bytes to 24 bytes. See each commit for more details. Microbenchmarks are [here](https://gist.github.com/yuzefovich/f61ad24da47dacfee92dc06dd214d26f) - the improvement is solely due to stack allocating a slice of children in one of the commits. Inspired by https://github.com/cockroachlabs/support/issues/2847. Epic: None Co-authored-by: lyang24 <[email protected]> Co-authored-by: Marcus Gartner <[email protected]> Co-authored-by: Adam Storm <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
102 changed files
with
1,384 additions
and
1,341 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
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,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
|
||
PGURLS=$(./roachprod pgurl cct-232 --external --secure --cluster application | sed s/\'//g) | ||
|
||
read -r -a PGURLS_ARR <<< "$PGURLS" | ||
|
||
j=0 | ||
while true; do | ||
echo ">> Starting kv workload" | ||
((j++)) | ||
LOG=./kv_$j.txt | ||
./cockroach workload run kv \ | ||
--init \ | ||
--drop \ | ||
--concurrency 128 \ | ||
--histograms kv/stats.json \ | ||
--db kv \ | ||
--splits 1000 \ | ||
--read-percent 50 \ | ||
--span-percent 20 \ | ||
--cycle-length 100000 \ | ||
--min-block-bytes 100 \ | ||
--max-block-bytes 1000 \ | ||
--prometheus-port 2114 \ | ||
--max-rate 1200 \ | ||
--secure \ | ||
--ramp 10m \ | ||
--display-every 5s \ | ||
--duration 12h \ | ||
--tolerate-errors \ | ||
--enum \ | ||
$PGURLS | tee "$LOG" | ||
if [ $? -eq 0 ]; then | ||
rm "$LOG" | ||
fi | ||
sleep 1 | ||
done |
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,26 @@ | ||
#!/usr/bin/env bash | ||
set -o pipefail | ||
|
||
PGURLS=$(./roachprod pgurl cct-232 --external --secure --cluster application | sed s/\'//g) | ||
read -r -a PGURLS_ARR <<< "$PGURLS" | ||
|
||
j=0 | ||
while true; do | ||
echo ">> Starting random schema change workload" | ||
((j++)) | ||
LOG=./schemachange_$j.txt | ||
./workload run schemachange --verbose=1 \ | ||
--tolerate-errors=true \ | ||
--histograms /mnt/data1/schemachange_perf/stats.json \ | ||
--concurrency 10 \ | ||
--txn-log /mnt/data1/schemachange_perf/txn.log \ | ||
--secure \ | ||
--user cct_schemachange_user \ | ||
--db schemachange \ | ||
--password cct_schemachange_password \ | ||
"${PGURLS_ARR[@]}" | tee "$LOG" | ||
if [ 0 -eq 0 ]; then | ||
rm "$LOG" | ||
fi | ||
sleep 1 | ||
done |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_kv ./kv_run.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_tpcc ./tpcc_run.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_tpcc_drop ./cct_tpcc_drop.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_schemachange ./schemachange_run.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_kv --uid 1000 --gid 1000 ./kv_run.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_tpcc --uid 1000 --gid 1000 ./tpcc_run.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_tpcc_drop --uid 1000 --gid 1000 ./cct_tpcc_drop.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_schemachange --uid 1000 --gid 1000 ./schemachange_run.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit chaos_test --uid=1000 --gid=1000 ./chaos_helper.sh | ||
sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit roachtest_operations --uid 1000 --gid 1000 ./roachtest_operations_run.sh |
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,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
|
||
TPCC_DB=cct_tpcc | ||
TPCC_USER=cct_tpcc_user | ||
TPCC_PASSWORD=tpcc | ||
PGURLS=$(./roachprod pgurl cct-232 --external --secure --cluster application | sed s/\'//g) | ||
|
||
read -r -a PGURLS_ARR <<< "$PGURLS" | ||
|
||
j=0 | ||
while true; do | ||
echo ">> Starting tpcc workload" | ||
((j++)) | ||
LOG=./tpcc_$j.txt | ||
./cockroach workload run tpcc \ | ||
--warehouses 3000 \ | ||
--active-warehouses 1500 \ | ||
--concurrency 128 \ | ||
--max-rate 7000 \ | ||
--db cct_tpcc \ | ||
--secure \ | ||
--ramp 10m \ | ||
--display-every 5s \ | ||
--duration 12h \ | ||
--user cct_tpcc_user \ | ||
--tolerate-errors \ | ||
--password tpcc \ | ||
--families \ | ||
"${PGURLS_ARR[@]}" | tee $LOG | ||
if [ $? -eq 0 ]; then | ||
rm "$LOG" | ||
fi | ||
sleep 1 | ||
done |
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.