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

Initial draft for Stitcher workload (SQLServer only). #361

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-11-28-957898.xml
Copy link
Collaborator

@bpkroth bpkroth Oct 2, 2023

Choose a reason for hiding this comment

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

Would be nicer I think to move these into a subdirectory.
Even better would be to provide a config mechanism that would allow something like the following:

<params>
   <!-- db specific connect info -->
   <include_workload_info>data/stitcher/workload_a.xml</include_workload_info>
</params>

Now have data/stitcher/workload_a.xml contain something like the following:

<workload_info>
  <transaction_types>
     ... <!-- as before -->
  </transaction_types>
  <works>
     <work>
        <comment>timestamp: 2023-02-24-15-11-28-957898, some other data</comment>
        <time>...</time>
        <rate>...</rate>
        <weights>...</weights>
        <terminals>...</terminals> <!-- new: moving this parameter in here might require more work -->
     </work>
     <!-- new: repeat as necessary all in a single file -->
      ...
  </works>
</workload_info>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I can look into that. It would definitely make it more generic for any other benchmarks that are generated in this manner.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, thinking about it some more, I think we could generalize this as a new type of benchmark (multi-benchmark?) where the user specifies as input a set of configurations and an execution order as part of its xml definition. The execution order can either contain a pointer to a configuration or a 'sleep' command. The tricky part is rewriting the DBWorkload.java class because you'd need a way to instantiate BenchBase in subthreads. I can give it a go if you're okay with that plan? The stitcher workload would then be one instantiation of such a multi-benchmark.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>

<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=tpcc16</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>

<scalefactor>16</scalefactor>

<terminals>4</terminals>
<works>
<work>
<time>300</time>
<rate>5</rate>
<weights>45,43,4,4,4</weights>
</work>
</works>

<transactiontypes>
<transactiontype>
<name>NewOrder</name>
</transactiontype>
<transactiontype>
<name>Payment</name>
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
</transactiontype>
<transactiontype>
<name>Delivery</name>
</transactiontype>
<transactiontype>
<name>StockLevel</name>
</transactiontype>
</transactiontypes>
</parameters>
39 changes: 39 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-16-35-006545.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>

<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=tpcc16</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>

<scalefactor>16</scalefactor>

<terminals>7</terminals>
<works>
<work>
<time>300</time>
<rate>62</rate>
<weights>45,43,4,4,4</weights>
</work>
</works>

<transactiontypes>
<transactiontype>
<name>NewOrder</name>
</transactiontype>
<transactiontype>
<name>Payment</name>
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
</transactiontype>
<transactiontype>
<name>Delivery</name>
</transactiontype>
<transactiontype>
<name>StockLevel</name>
</transactiontype>
</transactiontypes>
</parameters>
47 changes: 47 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-16-36-026578.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>


<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=ycsb</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>
<uploadCode />
<uploadUrl />


<scalefactor>1200</scalefactor>

<terminals>7</terminals>
<works>
<work>
<time>300</time>
<rate>112</rate>
<weights>50,5,15,10,10,10</weights>
</work>
</works>


<transactiontypes>
<transactiontype>
<name>ReadRecord</name>
</transactiontype>
<transactiontype>
<name>InsertRecord</name>
</transactiontype>
<transactiontype>
<name>ScanRecord</name>
</transactiontype>
<transactiontype>
<name>UpdateRecord</name>
</transactiontype>
<transactiontype>
<name>DeleteRecord</name>
</transactiontype>
<transactiontype>
<name>ReadModifyWriteRecord</name>
</transactiontype>
</transactiontypes>
</parameters>
39 changes: 39 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-21-41-073553.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>

<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=tpcc16</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>

<scalefactor>16</scalefactor>

<terminals>1</terminals>
<works>
<work>
<time>300</time>
<rate>50</rate>
<weights>45,43,4,4,4</weights>
</work>
</works>

<transactiontypes>
<transactiontype>
<name>NewOrder</name>
</transactiontype>
<transactiontype>
<name>Payment</name>
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
</transactiontype>
<transactiontype>
<name>Delivery</name>
</transactiontype>
<transactiontype>
<name>StockLevel</name>
</transactiontype>
</transactiontypes>
</parameters>
47 changes: 47 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-21-42-097569.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>


<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=ycsb</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>
<uploadCode />
<uploadUrl />


<scalefactor>1200</scalefactor>

<terminals>1</terminals>
<works>
<work>
<time>300</time>
<rate>274</rate>
<weights>50,5,15,10,10,10</weights>
</work>
</works>


<transactiontypes>
<transactiontype>
<name>ReadRecord</name>
</transactiontype>
<transactiontype>
<name>InsertRecord</name>
</transactiontype>
<transactiontype>
<name>ScanRecord</name>
</transactiontype>
<transactiontype>
<name>UpdateRecord</name>
</transactiontype>
<transactiontype>
<name>DeleteRecord</name>
</transactiontype>
<transactiontype>
<name>ReadModifyWriteRecord</name>
</transactiontype>
</transactiontypes>
</parameters>
39 changes: 39 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-26-45-119435.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>

<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=tpcc160</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>

<scalefactor>160</scalefactor>

<terminals>7</terminals>
<works>
<work>
<time>300</time>
<rate>5</rate>
<weights>45,43,4,4,4</weights>
</work>
</works>

<transactiontypes>
<transactiontype>
<name>NewOrder</name>
</transactiontype>
<transactiontype>
<name>Payment</name>
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
</transactiontype>
<transactiontype>
<name>Delivery</name>
</transactiontype>
<transactiontype>
<name>StockLevel</name>
</transactiontype>
</transactiontypes>
</parameters>
47 changes: 47 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-26-46-136455.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>


<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=ycsb</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>
<uploadCode />
<uploadUrl />


<scalefactor>1200</scalefactor>

<terminals>4</terminals>
<works>
<work>
<time>300</time>
<rate>335</rate>
<weights>50,5,15,10,10,10</weights>
</work>
</works>


<transactiontypes>
<transactiontype>
<name>ReadRecord</name>
</transactiontype>
<transactiontype>
<name>InsertRecord</name>
</transactiontype>
<transactiontype>
<name>ScanRecord</name>
</transactiontype>
<transactiontype>
<name>UpdateRecord</name>
</transactiontype>
<transactiontype>
<name>DeleteRecord</name>
</transactiontype>
<transactiontype>
<name>ReadModifyWriteRecord</name>
</transactiontype>
</transactiontypes>
</parameters>
39 changes: 39 additions & 0 deletions config/sqlserver/stitcher/2023-02-24-15-31-49-164210.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<parameters>

<type>sqlserver</type>
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
<url>jdbc:sqlserver://localhost:1433;encrypt=false;databaseName=tpcc160</url>
<username>benchuser01</username>
<password>P@ssw0rd</password>
<isolation>TRANSACTION_SERIALIZABLE</isolation>

<scalefactor>160</scalefactor>

<terminals>8</terminals>
<works>
<work>
<time>300</time>
<rate>5</rate>
<weights>45,43,4,4,4</weights>
</work>
</works>

<transactiontypes>
<transactiontype>
<name>NewOrder</name>
</transactiontype>
<transactiontype>
<name>Payment</name>
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
</transactiontype>
<transactiontype>
<name>Delivery</name>
</transactiontype>
<transactiontype>
<name>StockLevel</name>
</transactiontype>
</transactiontypes>
</parameters>
Loading
Loading