-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathsample_anonymization_config.xml
84 lines (78 loc) · 2.97 KB
/
sample_anonymization_config.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0"?>
<parameters>
<!-- Connection details -->
<type>POSTGRES</type>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://localhost:5432/benchbase?sslmode=disable&ApplicationName=tpcc&reWriteBatchedInserts=true</url>
<username>admin</username>
<password>password</password>
<reconnectOnConnectionFailure>true</reconnectOnConnectionFailure>
<isolation>TRANSACTION_SERIALIZABLE</isolation>
<batchsize>128</batchsize>
<!-- Note: this example anonymizes the "item" table of the tpcc workload.
To run, use the `anonymize=true` flag
-->
<!-- The anonymization configuration -->
<anonymization>
<table name="item">
<differential_privacy epsilon="1.0" pre_epsilon="0.0" algorithm="mst">
<!-- Column categorization -->
<ignore>
<column name="i_id"/>
<column name="i_data" />
<column name="i_im_id" />
</ignore>
<categorical>
<column name="i_name" />
</categorical>
<!-- Continuous column fine-tuning -->
<continuous>
<column name="i_price" bins="20" lower="2.0" upper="100.0" />
</continuous>
</differential_privacy>
<!-- Sensitive value handling -->
<value_faking>
<column name="i_name" method="pystr" locales="en_US" seed="0"/>
</value_faking>
</table>
</anonymization>
<!-- Scale factor is the number of warehouses in TPCC -->
<scalefactor>1</scalefactor>
<!-- The workload -->
<terminals>1</terminals>
<works>
<work>
<time>60</time>
<rate>10000</rate>
<weights>45,43,4,4,4</weights>
</work>
</works>
<!-- TPCC specific -->
<transactiontypes>
<transactiontype>
<name>NewOrder</name>
<!--<preExecutionWait>18000</preExecutionWait>-->
<!--<postExecutionWait>12000</postExecutionWait>-->
</transactiontype>
<transactiontype>
<name>Payment</name>
<!--<preExecutionWait>3000</preExecutionWait>-->
<!--<postExecutionWait>12000</postExecutionWait>-->
</transactiontype>
<transactiontype>
<name>OrderStatus</name>
<!--<preExecutionWait>2000</preExecutionWait>-->
<!--<postExecutionWait>10000</postExecutionWait>-->
</transactiontype>
<transactiontype>
<name>Delivery</name>
<!--<preExecutionWait>2000</preExecutionWait>-->
<!--<postExecutionWait>5000</postExecutionWait>-->
</transactiontype>
<transactiontype>
<name>StockLevel</name>
<!--<preExecutionWait>2000</preExecutionWait>-->
<!--<postExecutionWait>5000</postExecutionWait>-->
</transactiontype>
</transactiontypes>
</parameters>