You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v19.2/cockroach-workload.md
+74-21Lines changed: 74 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -60,13 +60,13 @@ There are two ways to increase the concurrency of a workload:
60
60
61
61
Workload | Description
62
62
---------|------------
63
-
`bank` | Models a set of accounts with currency balances.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
64
-
`intro` | Loads an `intro` database, with one table, `mytable`, with a hidden message.<br><br>For this workload, you run only `workload init` to load the data. The `workload run` subcommand is not applicable.
65
-
`kv` | Reads and writes to keys spread (by default, uniformly at random) across the cluster.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
66
-
`movr` | Loads a `movr` database, with several tables of data for the [MovR example application](movr.html).<br><br>For this workload, you run only `workload init` to load the data. The `workload run`subcommand is not applicable.
67
-
`startrek` | Loads a `startrek` database, with two tables, `episodes` and `quotes`.<br><br>For this workload, you run only `workload init` to load the data. The `workload run` subcommand is not applicable.
68
-
`tpcc` | Simulates a transaction processing workload using a rich schema of multiple tables.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
69
-
`ycsb` | Simulates a high-scale key value workload, either read-heavy, write-heavy, or scan-based, with additional customizations.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
63
+
[`bank`](#bank-workload) | Models a set of accounts with currency balances.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
64
+
[`intro`](#intro-and-startrek-workloads) | Loads an `intro` database, with one table, `mytable`, with a hidden message.<br><br>For this workload, you run only `workload init` to load the data. The `workload run` subcommand is not applicable.
65
+
[`kv`](#kv-workload) | Reads and writes to keys spread (by default, uniformly at random) across the cluster.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
66
+
[`movr`](#movr-workload) | <spanclass="version-tag">New in v19.2:</span> Simulates a workload for the [MovR example application](movr.html).<br><br>For this workload, you run `workload init` to load the schema and then `workload run`to generate data.
67
+
[`startrek`](#intro-and-startrek-workloads) | Loads a `startrek` database, with two tables, `episodes` and `quotes`.<br><br>For this workload, you run only `workload init` to load the data. The `workload run` subcommand is not applicable.
68
+
[`tpcc`](#tpcc-workload) | Simulates a transaction processing workload using a rich schema of multiple tables.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
69
+
[`ycsb`](#ycsb-workload) | Simulates a high-scale key value workload, either read-heavy, write-heavy, or scan-based, with additional customizations.<br><br>For this workload, you run `workload init` to load the schema and then `workload run` to generate data.
70
70
71
71
## Flags
72
72
@@ -134,24 +134,28 @@ Flag | Description
134
134
135
135
### `movr` workload
136
136
137
-
{{site.data.alerts.callout_info}}
138
-
This workload generates data but does not offer the ability to run continuous load. Thus, only the `init` subcommand is supported.
139
-
{{site.data.alerts.end}}
140
-
141
137
Flag | Description
142
138
-----|------------
143
-
`--concurrency` | The number of concurrent workers.<br><br>**Default:**`16`
144
-
`--db` | The SQL database to use.<br><br>**Default:**`movr`
139
+
`--concurrency` | The number of concurrent workers.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`16`
140
+
`--data-loader` | How to load initial table data. Valid options are `INSERT` and `IMPORT`.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`INSERT`
141
+
`--db` | The SQL database to use.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`movr`
145
142
`--display-every` | <spanclass="version-tag">New in v19.2:</span> The frequency for printing per-operation statistics. Valid [time units](https://en.wikipedia.org/wiki/Orders_of_magnitude_(time)) are `ns`, `us`, `ms`, `s`, `m`, and `h`.<br><br>**Applicable command:**`run`<br>**Default:**`1s`
146
143
`--display-format` | <spanclass="version-tag">New in v19.2:</span> The format for printing per-operation statistics (`simple`, `incremental-json`). When using `incremental-json`, note that totals are not printed at the end of the workload's duration.<br><br>**Applicable command:**`run`<br>**Default:**`simple`
147
-
`--drop` | Drop the existing database, if it exists.
148
-
`--method` | The SQL issue method (`prepare`, `noprepare`, `simple`).<br><br>**Default:**`prepare`
149
-
`--num-histories` | The initial number of ride location histories.<br><br>**Default:**`1000`
150
-
`--num-promo-codes` | The initial number of promo codes.<br><br>**Default:**`1000`
151
-
`--num-rides` | Initial number of rides.<br><br>**Default:**`500`
152
-
`--num-users` | Initial number of users.<br><br>**Default:**`50`
153
-
`--num-vehicles` | Initial number of vehicles.<br><br>**Default:**`15`
154
-
`--seed` | The random number generator seed.<br><br>**Default:**`1`
144
+
`--drop` | Drop the existing database, if it exists.<br><br>**Applicable commands:**`init` or `run`
145
+
`--duration` | The duration to run, with a required time unit suffix. Valid [time units](https://en.wikipedia.org/wiki/Orders_of_magnitude_(time)) are `ns`, `us`, `ms`, `s`, `m`, and `h`.<br><br>**Applicable command:**`run`<br>**Default:**`0`, which means run forever.
146
+
`--histograms` | The file to write per-op incremental and cumulative histogram data to.<br><br>**Applicable command:**`run`
147
+
`--histograms-max-latency` | Expected maximum latency of running a query, with a required time unit suffix. Valid [time units](https://en.wikipedia.org/wiki/Orders_of_magnitude_(time)) are `ns`, `us`, `ms`, `s`, `m`, and `h`.<br><br>**Applicable command:**`run`<br>**Default:**`1m40s`
148
+
`--max-ops` | The maximum number of operations to run.<br><br>**Applicable command:**`run`
149
+
`--max-rate` | The maximum frequency of operations (reads/writes).<br><br>**Applicable command:**`run`<br>**Default:**`0`, which means unlimited.
150
+
`--method` | The SQL issue method (`prepare`, `noprepare`, `simple`).<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`prepare`
151
+
`--num-histories` | The initial number of ride location histories.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`1000`
152
+
`--num-promo-codes` | The initial number of promo codes.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`1000`
153
+
`--num-rides` | Initial number of rides.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`500`
154
+
`--num-users` | Initial number of users.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`50`
155
+
`--num-vehicles` | Initial number of vehicles.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`15`
156
+
`--ramp` | The duration over which to ramp up load.<br><br>**Applicable command:**`run`
157
+
`--seed` | The random number generator seed.<br><br>**Applicable commands:**`init` or `run`<br>**Default:**`1`
158
+
`--tolerate-errors` | Keep running on error.<br><br>**Applicable command:**`run`
0 commit comments