-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtpcc_template.xml
47 lines (43 loc) · 1.21 KB
/
tpcc_template.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<parameters>
<dbtype>peloton</dbtype>
<driver>org.postgresql.Driver</driver>
<DBUrl>jdbc:postgresql://$IP:$PORT/tpcc/</DBUrl>
<DBName>tpcc</DBName>
<username>postgres</username>
<password>postgres</password>
<!-- Scalefactor in TPCC is the number of warehouses-->
<scalefactor>$SCALE_FACTOR</scalefactor>
<!-- The workload -->
<terminals>$THREAD_NUMBER</terminals>
<works>
<work>
<time>$TIME</time>
<rate>unlimited</rate>
<weights>$NEW_ORDER_RATIO,$PAYMENT_RATIO,$ORDER_STATUS_RATIO,$DELIVERY_RATIO,$STOCK_LEVEL_RATIO</weights>
</work>
</works>
<!-- TPCC Procedures declaration -->
<transactiontypes>
<transactiontype>
<name>NewOrder</name>
<id>1</id>
</transactiontype>
<transactiontype>
<name>Payment</name>
<id>2</id>
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
<id>3</id>
</transactiontype>
<transactiontype>
<name>Delivery</name>
<id>4</id>
</transactiontype>
<transactiontype>
<name>StockLevel</name>
<id>5</id>
</transactiontype>
</transactiontypes>
</parameters>