Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drtprod: add tpcc_run.sh to workload-scale #132881

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vidit-bhat
Copy link
Contributor

This PR add the tpcc_run.sh to all workload-scale nodes. The script distributes the PGURLS equally amongst the workload nodes.

Epic: none
Release note: None

This PR add the `tpcc_run.sh` to all
`workload-scale` nodes. The script distributes the
`PGURLS` equally amongst the workload nodes.

Epic: none
Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@vidit-bhat vidit-bhat marked this pull request as ready for review October 17, 2024 23:25
@vidit-bhat vidit-bhat requested a review from a team as a code owner October 17, 2024 23:25
@vidit-bhat vidit-bhat requested review from herkolategan, DarrylWong, nameisbhaskar and shailendra-patel and removed request for a team October 17, 2024 23:25
Copy link
Contributor

@nameisbhaskar nameisbhaskar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change. It overall looks good.


# Calculate number of larger and smaller groups
NUM_LARGER=$(( $CLUSTER_NODES % $WORKLOAD_NODES ))
NUM_SMALLER=$(( $WORKLOAD_NODES - NUM_LARGER ))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NUM_SMALLER=$(( $WORKLOAD_NODES - NUM_LARGER ))
NUM_SMALLER=$(( $WORKLOAD_NODES - $NUM_LARGER ))

exit 1
fi

# Calculate group sizes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please show an example in the comment explaining what each of these variables mean. How everything distributes the CRDB nodes to the workload nodes evenly.

@@ -126,3 +124,11 @@ targets:
flags:
warehouses: 100000
db: cct_tpcc
- script: "pkg/cmd/drtprod/scripts/tpcc_run.sh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to avoid confusion, can we rename the script to be generate_tpcc_run.sh or something?

@@ -21,7 +23,7 @@ targets:
gce-managed: true
gce-enable-multiple-stores: true
gce-zones: "us-central1-a"
nodes: 150
nodes: $CLUSTER_NODES
gce-machine-type: n2-standard-16
local-ssd: true
gce-local-ssd-count: 4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be beneficial to make this a env variable as well as this is used in 2 places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants