From 13831808b349a2ba8dd24f54e531a2335a8a2afc Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Wed, 3 Oct 2018 18:49:27 -0400 Subject: [PATCH] roachtest: add ramp period to tpcc/nodes=3/w=max Fixes #30886. Release note: None --- pkg/cmd/roachtest/tpcc.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/roachtest/tpcc.go b/pkg/cmd/roachtest/tpcc.go index 6ffaf9a61d0d..4ba24dd8e0b7 100644 --- a/pkg/cmd/roachtest/tpcc.go +++ b/pkg/cmd/roachtest/tpcc.go @@ -46,9 +46,11 @@ type tpccOptions struct { func runTPCC(ctx context.Context, t *test, c *cluster, opts tpccOptions) { crdbNodes := c.Range(1, c.nodes-1) workloadNode := c.Node(c.nodes) + rampDuration := 5 * time.Minute if c.isLocal() { opts.Warehouses = 1 - opts.Duration = 10 * time.Second + opts.Duration = 1 * time.Minute + rampDuration = 30 * time.Second } else if !opts.ZFS { c.RemountNoBarrier(ctx) } @@ -103,8 +105,8 @@ func runTPCC(ctx context.Context, t *test, c *cluster, opts tpccOptions) { t.WorkerStatus("running tpcc") cmd := fmt.Sprintf( "./workload run tpcc --warehouses=%d --histograms=logs/stats.json "+ - opts.Extra+" --duration=%s {pgurl:1-%d}", - opts.Warehouses, opts.Duration, c.nodes-1) + opts.Extra+" --ramp=%s --duration=%s {pgurl:1-%d}", + opts.Warehouses, rampDuration, opts.Duration, c.nodes-1) c.Run(ctx, workloadNode, cmd) return nil })