From a1a0f2203ea46e6545adb40980dcf270f32f006c Mon Sep 17 00:00:00 2001 From: houfaxin Date: Mon, 11 Aug 2025 12:05:59 +0800 Subject: [PATCH 1/2] Update tiup-bench.md --- tiup/tiup-bench.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tiup/tiup-bench.md b/tiup/tiup-bench.md index bfc203ba17b11..ba625550cc850 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. +- In a local deployment, the default database host address is `127.0.0.1`. If the deployment is not local, use the full `tiup bench` command to specify the 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. From 5491d36f92cabbabe189535bc41410358aadcac1 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 11 Aug 2025 13:01:15 +0800 Subject: [PATCH 2/2] Update tiup/tiup-bench.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tiup/tiup-bench.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiup/tiup-bench.md b/tiup/tiup-bench.md index ba625550cc850..253fd8d263cac 100644 --- a/tiup/tiup-bench.md +++ b/tiup/tiup-bench.md @@ -43,7 +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. -- In a local deployment, the default database host address is `127.0.0.1`. If the deployment is not local, use the full `tiup bench` command to specify the 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` +- 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.