Skip to content

Commit

Permalink
Merge pull request #497 from vitessio/add-tpcc-fk-unmanaged
Browse files Browse the repository at this point in the history
Add `tpcc_fk_unmanaged` benchmark
  • Loading branch information
frouioui authored Jan 11, 2024
2 parents 228ff12 + 7711b38 commit 231b3e4
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
16 changes: 16 additions & 0 deletions ansible/vitess-benchmark/tpcc_fk_unmanaged_vschema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"sharded": false,
"foreignKeyMode": "unmanaged",
"tables": {
"customer1": {},
"district1": {},
"history1": {},
"item1": {},
"new_orders1": {},
"order_line1": {},
"orders1": {},
"stock1": {},
"warehouse1": {}
}
}

43 changes: 43 additions & 0 deletions config/benchmarks/tpcc_fk_unmanaged.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Exec configuration
exec-type: tpcc_fk_unmanaged
exec-schema: "./vitess-benchmark/tpcc_fk_unmanaged_vschema.json"
minimum-version: 18

## Ansible
ansible-inventory-file: macrobench_unsharded_inventory.yml
ansible-playbook-file: macrobench.yml

## Macrobench cmd
macrobench-sysbench-executable: /usr/local/bin/sysbench
macrobench-workload-path: /src/sysbench-tpcc/tpcc.lua
macrobench-skip-steps:
macrobench-type: tpcc_fk_unmanaged
macrobench-working-directory: /src/sysbench-tpcc

## Sysbench all steps
macrobench_all_mysql-db: main
macrobench_all_mysql-host: 127.0.0.1
macrobench_all_mysql-port: 13306
macrobench_all_db-ps-mode: disable
macrobench_all_db-driver: mysql
macrobench_all_luajit-cmd: "off"
macrobench_all_threads: 42
macrobench_all_tables: 1
macrobench_all_scale: 1
macrobench_all_rand-type: uniform
macrobench_all_rand-seed: 1
macrobench_all_use_fk: 1
macrobench_all_mysql-ignore-errors: all

## Sysbench prepare step
macrobench_prepare_time: 60
macrobench_prepare_report-interval: 10

## Sysbench warm up step
macrobench_warmup_time: 60
macrobench_warmup_report-interval: 10

## Sysbench run step
macrobench_run_time: 600
macrobench_run_report_json: "yes"
macrobench_run_verbosity: 0
7 changes: 4 additions & 3 deletions go/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ func (s *Server) Init() error {
// MySQL connections being dropped. This issue will be investigated soon.
"oltp-readonly-olap": {file: path.Join(s.benchmarkConfigPath, "olap-readonly.yaml"), v: viper.New(), skip: true},

"tpcc": {file: path.Join(s.benchmarkConfigPath, "tpcc.yaml"), v: viper.New()},
"tpcc_unsharded": {file: path.Join(s.benchmarkConfigPath, "tpcc_unsharded.yaml"), v: viper.New()},
"tpcc_fk": {file: path.Join(s.benchmarkConfigPath, "tpcc_fk.yaml"), v: viper.New()},
"tpcc": {file: path.Join(s.benchmarkConfigPath, "tpcc.yaml"), v: viper.New()},
"tpcc_unsharded": {file: path.Join(s.benchmarkConfigPath, "tpcc_unsharded.yaml"), v: viper.New()},
"tpcc_fk": {file: path.Join(s.benchmarkConfigPath, "tpcc_fk.yaml"), v: viper.New()},
"tpcc_fk_unmanaged": {file: path.Join(s.benchmarkConfigPath, "tpcc_fk_unmanaged.yaml"), v: viper.New()},
}
for configName, config := range s.benchmarkConfig {
config.v.SetConfigFile(config.file)
Expand Down

0 comments on commit 231b3e4

Please sign in to comment.