Skip to content

Commit 678cead

Browse files
authored
tiup: clarify tiup bench command (#21552)
1 parent 02f25da commit 678cead

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tiup/tiup-bench.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ tiup bench rawsql # Benchmark a database using arbitrary SQL files
4444
```
4545

4646
- You can pass comma-separated values to `--host` and `--port` to enable client-side load balancing. For example, when you specify `--host 172.16.4.1,172.16.4.2 --port 4000,4001`, the program will connect to 172.16.4.1:4000, 172.16.4.1:4001, 172.16.4.2:4000, and 172.16.4.2:4001, chosen in round-robin fashion.
47+
- For a local deployment, the default database host address is `127.0.0.1`. If you are connecting to a remote database, you need to specify the host and other relevant parameters. For example: `tiup bench tpcc -H 192.168.169.31 -P 4000 -D tpcc -U root -p tidb --warehouses 4 --parts 4 prepare`
4748
- `--conn-params` must follow the format of [query string](https://en.wikipedia.org/wiki/Query_string). Different databases might have different parameters. For example:
4849
- `--conn-params tidb_isolation_read_engines='tiflash'` forces TiDB to read from TiFlash.
4950
- `--conn-params sslmode=disable` disables SSL when you connect to PostgreSQL.

0 commit comments

Comments
 (0)