Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

How to set the number of terminals for each work instance? #386

Open
Eleanor962 opened this issue Jul 28, 2021 · 1 comment
Open

How to set the number of terminals for each work instance? #386

Eleanor962 opened this issue Jul 28, 2021 · 1 comment

Comments

@Eleanor962
Copy link

Hi,

I'm trying to use oltpbench to generate a high-variation workload. Looking at XML files, I find

<!-- The workload -->
    <terminals>2</terminals>
    <works>
        <work>
          <time>60</time>
          <rate>10000</rate>
          <weights>45,43,4,4,4</weights>
        </work>
    </works>

By adding more work entry, I'm able to tune rate and weights as time go by. I'm wondering whether there's anyway to change number of terminals during the execution?
Looks like there would be a warmup at the beginning of execution, so I prefer not calling oltpbenchmark for multiple times.

Thanks in advance!

@lmwnshn
Copy link
Collaborator

lmwnshn commented Jul 29, 2021

I don't know for sure if functionality like this exists. I don't think so. The closest thing might be specifying number of terminals per benchmark.

The easiest thing might be to:

  1. Duplicate the benchmark in the benchmarks folder, so you have "tpcc1", "tpcc2".
  2. Specify number of terminals for "tpcc1", "tpcc2", etc. See https://github.com/oltpbenchmark/oltpbench/blob/master/config/sample_chbenchmark_config.xml for an example.

Of course, if you add the feature, that's great too! Please note that we may be merging https://github.com/oltpbenchmark/oltpbench/tree/oltpbench_tim soon as a "version 2", #363 , so active development should happen on that branch.

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

No branches or pull requests

2 participants