Skip to content

Commit 99ca7b9

Browse files
authored
Merge pull request #1 from git-anubhav/feat/tpcc-spanner-1
feat: add tpcc base config for spanner
2 parents 64468c3 + 061c5df commit 99ca7b9

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

config/spanner/sample_tpcc_config.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0"?>
2+
<parameters>
3+
4+
<!-- Connection details -->
5+
<type>SPANNER</type>
6+
<driver>com.google.cloud.spanner.jdbc.JdbcDriver</driver>
7+
<url>jdbc:cloudspanner://localhost:9010/projects/benchbase-project/instances/benchbase-instance/databases/benchbase;usePlainText=true</url>
8+
<isolation>TRANSACTION_SERIALIZABLE</isolation>
9+
<batchsize>128</batchsize>
10+
11+
<!-- Scale factor is the number of warehouses in TPCC -->
12+
<scalefactor>1</scalefactor>
13+
14+
<!-- The workload -->
15+
<terminals>1</terminals>
16+
<works>
17+
<work>
18+
<time>60</time>
19+
<rate>1500</rate>
20+
<weights>45,43,4,4,4</weights>
21+
</work>
22+
</works>
23+
24+
<!-- TPCC specific -->
25+
<transactiontypes>
26+
<transactiontype>
27+
<name>NewOrder</name>
28+
<!--<preExecutionWait>18000</preExecutionWait>-->
29+
<!--<postExecutionWait>12000</postExecutionWait>-->
30+
</transactiontype>
31+
<transactiontype>
32+
<name>Payment</name>
33+
<!--<preExecutionWait>3000</preExecutionWait>-->
34+
<!--<postExecutionWait>12000</postExecutionWait>-->
35+
</transactiontype>
36+
<transactiontype>
37+
<name>OrderStatus</name>
38+
<!--<preExecutionWait>2000</preExecutionWait>-->
39+
<!--<postExecutionWait>10000</postExecutionWait>-->
40+
</transactiontype>
41+
<transactiontype>
42+
<name>Delivery</name>
43+
<!--<preExecutionWait>2000</preExecutionWait>-->
44+
<!--<postExecutionWait>5000</postExecutionWait>-->
45+
</transactiontype>
46+
<transactiontype>
47+
<name>StockLevel</name>
48+
<!--<preExecutionWait>2000</preExecutionWait>-->
49+
<!--<postExecutionWait>5000</postExecutionWait>-->
50+
</transactiontype>
51+
</transactiontypes>
52+
</parameters>

0 commit comments

Comments
 (0)