cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

drtprod: control tpcc execution

Open nameisbhaskar opened this issue 1 year ago • 1 comments

In the tpcc init script, there is no option to control whether the script should be executed in the workload node immediately after creation or not. Today it just executes it as a background process immediately after creation.

This control is needed because we will need to create multiple tpcc databases with different names and not all scripts should be executed immediately.

So, this PR has a control that allows you to decide whether the script should be executed immediately or not after creation. Also, as we need to create multiple scripts in the same workload node, this PR has a change to put a suffix to the script name.

Epic: None Release note: None

nameisbhaskar avatar Oct 20 '24 16:10 nameisbhaskar

This change is Reviewable

cockroach-teamcity avatar Oct 20 '24 16:10 cockroach-teamcity

Thanks @shailendra-patel for reviewing this.

nameisbhaskar avatar Oct 21 '24 05:10 nameisbhaskar

bors r=@shailendra-patel

nameisbhaskar avatar Oct 21 '24 05:10 nameisbhaskar