Skip to content

Commit 9060fe3

Browse files
committed
fix: add thread count for ycsb-redis
1 parent 37fb195 commit 9060fe3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/ycsb_job.go

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func NewYcsbPrepareJobs(cr *v1alpha1.Ycsb) []*batchv1.Job {
4444
cmd = fmt.Sprintf("%s %s", cmd, NewYcsbWorkloadParams(cr))
4545
cmd = fmt.Sprintf("%s -p recordcount=%d", cmd, cr.Spec.RecordCount)
4646
cmd = fmt.Sprintf("%s -p operationcount=%d", cmd, cr.Spec.OperationCount)
47+
cmd = fmt.Sprintf("%s -p threadcount=%d", cmd, cr.Spec.Threads[0])
4748
cmd = fmt.Sprintf("%s %s", cmd, strings.Join(cr.Spec.ExtraArgs, " "))
4849
cmd = fmt.Sprintf("%s 2>&1 | tee /var/log/ycsb.log", cmd)
4950

0 commit comments

Comments
 (0)