forked from dhentchel/dbt2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-DRIZZLE
67 lines (45 loc) · 2.29 KB
/
README-DRIZZLE
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
This release of dbt2 was proofed again the 2010.11.04 build.
To build and run with Drizzle, run the following steps:
1. Build the tools
% rm -f CMakeCache.txt
% cmake CMakeLists.txt -DDBMS="drizzle" && make && make install
2. Set the DBT2DATADIR environment variable to the path of the datadir.
% export DBT2DATADIR=/tmp/dbt2
3. Generate the data, specifying the number of warehouses with the -w
option and the location of where to store the generated data.
% mkdir /tmp/data
% dbt2-datagen -w 10 -d /tmp/data --drizzle
4. Create the database.
% mkdir -p /tmp/dbt2
% dbt2-drizzle-admin -w /usr -s start \
-p "--no-defaults --datadir /tmp/dbt2"
5. Load the data into the database (assumes you have a version of
drizzled already running) specifying the path of the generated data and
the path to the drizzle client
% dbt2-drizzle-load-db --path /tmp/data --drizzle_path /usr/bin/drizzle
6. Run the test and generate test results
% dbt2-run-workload -a drizzle -i /usr -c 10 -d 300 -w 10 -o /tmp/results \
-D dbt2 -p "--no-defaults --datadir /tmp/dbt2"
Output should look similar to:
Response Time (s)
Transaction % Average : 90th % Total Rollbacks %
------------ ----- --------------------- ----------- --------------- -----
Delivery 5.45 0.621 : 0.576 6 0 0.00
New Order 47.27 0.147 : 0.327 52 2 3.85
Order Status 3.64 0.032 : 0.049 4 0 0.00
Payment 35.45 0.028 : 0.042 39 0 0.00
Stock Level 3.64 0.454 : 0.545 4 0 0.00
25.86 new-order transactions per minute (NOTPM)
1.9 minute duration
0 total unknown errors
2 rollback transactions
3 second(s) ramping up
NOTE: Make sure that number of warehouses (option -w) is less than or equal
(not greater) to the number of warehouses that were created when you generated
your data
Results and log files can be found in /tmp/results
Some of the useful log files:
/tmp/results/client/${HOST}.1/error.log - client errors
/tmp/results/driver/${HOST}.1/error.log - driver errors
/tmp/results/mix.log - info about performed transactions
/tmp/results/report.txt - results of the test