diff --git a/tiup/tiup-bench.md b/tiup/tiup-bench.md index bfc203ba17b11..253fd8d263cac 100644 --- a/tiup/tiup-bench.md +++ b/tiup/tiup-bench.md @@ -43,6 +43,7 @@ tiup bench rawsql # Benchmark a database using arbitrary SQL files ``` - 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. +- 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` - `--conn-params` must follow the format of [query string](https://en.wikipedia.org/wiki/Query_string). Different databases might have different parameters. For example: - `--conn-params tidb_isolation_read_engines='tiflash'` forces TiDB to read from TiFlash. - `--conn-params sslmode=disable` disables SSL when you connect to PostgreSQL.