TPC-C Load Phase
Before starting the workload, you need to load the data. Make sure to replace the IP addresses with that of the nodes in the cluster.
$ ./tpccbenchmark --create=true --nodes=127.0.0.1,127.0.0.2,127.0.0.3
$ ./tpccbenchmark --load=true --nodes=127.0.0.1,127.0.0.2,127.0.0.3
Cluster | 3 nodes of type `c5d.large` |
Loader threads | 10 |
Loading Time | ~13 minutes |
Data Set Size | ~20 GB |
The loading time for ten warehouses on a cluster with 3 nodes of type c5d.4xlarge is approximately 3 minutes.
TPC-C Execute Phase
You can run the workload against the database as follows:
$ ./tpccbenchmark --execute=true \
--nodes=127.0.0.1,127.0.0.2,127.0.0.3
TPC-C Benchmark Results
Cluster | 3 nodes of type `c5d.large` |
TPMC | 127 |
Efficiency | 98.75% |
Latencies |
New Order Avg: 66.286 msecs, p99: 212.47 msecs Payment Avg: 17.406 msecs, p99: 186.884 msecs OrderStatus Avg: 7.308 msecs, p99: 86.974 msecs Delivery Avg: 66.986 msecs, p99: 185.919 msecs StockLevel Avg: 98.32 msecs, p99: 192.054 msecs |
Once the execution is completed, the TPM-C number along with the efficiency is printed, as follows:
21:09:23,588 (DBWorkload.java:955) INFO - Throughput: Results(nanoSeconds=1800000263504, measuredRequests=8554) = 4.752221526539232 requests/sec reqs/sec
21:09:23,588 (DBWorkload.java:956) INFO - Num New Order transactions : 3822, time seconds: 1800
21:09:23,588 (DBWorkload.java:957) INFO - TPM-C: 127
21:09:23,588 (DBWorkload.java:958) INFO - Efficiency : 98.75%
21:09:23,593 (DBWorkload.java:983) INFO - NewOrder, Avg Latency: 66.286 msecs, p99 Latency: 212.47 msecs
21:09:23,596 (DBWorkload.java:983) INFO - Payment, Avg Latency: 17.406 msecs, p99 Latency: 186.884 msecs
21:09:23,596 (DBWorkload.java:983) INFO - OrderStatus, Avg Latency: 7.308 msecs, p99 Latency: 86.974 msecs
21:09:23,596 (DBWorkload.java:983) INFO - Delivery, Avg Latency: 66.986 msecs, p99 Latency: 185.919 msecs
21:09:23,596 (DBWorkload.java:983) INFO - StockLevel, Avg Latency: 98.32 msecs, p99 Latency: 192.054 msecs
21:09:23,597 (DBWorkload.java:792) INFO - Output Raw data into file: results/oltpbench.csv