/
githubmirror
/
tpcc-postgres
Обзор
Документация
Войти
/
githubmirror
/
tpcc-postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
config/postgres/sample_chbenchmark_config.xml
160 строк
5 KB
Wan Shen Lim
Update config database from oltpbench to benchbase.
09 авг 2021, 21:02
09 авг 2021, 21:02
94fcde7
Код
Авторство
О чём код?
<?xml version="1.0"?> <parameters> <!-- Connection details --> <type>POSTGRES</type> <driver>org.postgresql.Driver</driver> <url>jdbc:postgresql://localhost:5432/benchbase?sslmode=disable&ApplicationName=chbenchmark&reWriteBatchedInserts=true</url> <username>admin</username> <password>password</password> <isolation>TRANSACTION_SERIALIZABLE</isolation> <batchsize>128</batchsize> <!-- Scale factor is the number of warehouses in TPCC --> <scalefactor>1</scalefactor> <!-- The workload --> <!-- Number of terminal per workload --> <terminals>1</terminals> <!-- Extra Features (Commented Out) --> <!-- Can be workload-specific --> <!-- <terminals bench="tpcc">2</terminals> --> <!-- Workload-specific options a marked with @bench=[workload_name] --> <!-- Workload-specific number of terminals --> <!-- <terminals bench="chbenchmark">2</terminals> --> <works> <!-- A Basic WorkPhase for Mixed Workloads --> <work> <time>60</time> <!-- Note: The rate can be set to UNLIMITED or DISABLED --> <rate>200</rate> <!-- Need to Specify transaction weights for each workload .. Otherwise the number of fields won't match --> <weights bench="tpcc">45,43,4,4,4</weights> <weights bench="chbenchmark">3, 2, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5</weights> </work> <!-- Extra features showcase --> <!-- <work> --> <!-- <time>60</time> --> <!-- <rate>200</rate> --> <!-- <rate bench="chbenchmark">disabled</rate> --> <!-- NOTE: TPCC workers won't be distributed evenly between warehouses if not all workers are active --> <!-- <active_terminals>1</active_terminals> --> <!-- <active_terminals bench="chbenchmark">1</active_terminals> --> <!-- Specifies transaction weight for each workload. --> <!-- <weights bench="tpcc">45,43,4,4,4</weights> --> <!-- <weights bench="chbenchmark">3, 2, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5</weights> --> <!-- </work> --> <!-- <work> <time>60</time> <rate>100</rate> <rate bench="chbenchmark">unlimited</rate> <weights bench="tpcc">45,43,4,4,4</weights> <weights bench="chbenchmark">3, 2, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5</weights> </work> --> </works> <!-- CH specific --> <transactiontypes bench="chbenchmark"> <transactiontype> <name>Q1</name> </transactiontype> <transactiontype> <name>Q2</name> </transactiontype> <transactiontype> <name>Q3</name> </transactiontype> <transactiontype> <name>Q4</name> </transactiontype> <transactiontype> <name>Q5</name> </transactiontype> <transactiontype> <name>Q6</name> </transactiontype> <transactiontype> <name>Q7</name> </transactiontype> <transactiontype> <name>Q8</name> </transactiontype> <transactiontype> <name>Q9</name> </transactiontype> <transactiontype> <name>Q10</name> </transactiontype> <transactiontype> <name>Q11</name> </transactiontype> <transactiontype> <name>Q12</name> </transactiontype> <transactiontype> <name>Q13</name> </transactiontype> <transactiontype> <name>Q14</name> </transactiontype> <transactiontype> <name>Q15</name> </transactiontype> <transactiontype> <name>Q16</name> </transactiontype> <transactiontype> <name>Q17</name> </transactiontype> <transactiontype> <name>Q18</name> </transactiontype> <transactiontype> <name>Q19</name> </transactiontype> <transactiontype> <name>Q20</name> </transactiontype> <transactiontype> <name>Q21</name> </transactiontype> <transactiontype> <name>Q22</name> </transactiontype> </transactiontypes> <!-- TPCC specific --> <transactiontypes bench="tpcc"> <transactiontype> <name>NewOrder</name> </transactiontype> <transactiontype> <name>Payment</name> </transactiontype> <transactiontype> <name>OrderStatus</name> </transactiontype> <transactiontype> <name>Delivery</name> </transactiontype> <transactiontype> <name>StockLevel</name> </transactiontype> </transactiontypes> </parameters>