From 4c93ec216c3c0267715ecc514ab90a326b1601a4 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Wed, 17 Jun 2020 21:07:13 +0800 Subject: [PATCH 1/3] Update command-line-flags-for-tikv-configuration.md --- command-line-flags-for-tikv-configuration.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/command-line-flags-for-tikv-configuration.md b/command-line-flags-for-tikv-configuration.md index 7b256d497cae2..268950d053237 100644 --- a/command-line-flags-for-tikv-configuration.md +++ b/command-line-flags-for-tikv-configuration.md @@ -22,9 +22,23 @@ TiKV supports some readable unit conversions for command line parameters. - The server advertise address for client traffic from outside - Default: ${addr} -- If the client cannot connect to TiKV through the default monitoring address because of Docker or NAT network, you must manually set the advertise address explicitly. +- If the client cannot connect to TiKV through the `--addr` address because of Docker or NAT network, you must manually set the `--advertise-addr` address. - For example, the internal IP address of Docker is 172.17.0.1, while the IP address of the host is 192.168.100.113 and the port mapping is set to `-p 20160:20160`. In this case, you can set `--advertise-addr` to "192.168.100.113:20160". The client can find this service through 192.168.100.113:20160. +## `--status-addr` + ++ The port through which the TiKV service status is listened ++ Default: "20180" ++ The Prometheus statistics can be accessed via `http://host:status_port/metrics`. ++ The Profile data can be accessed via `http://host:status_port/debug/pprof/profile`. + +## `--advertise-status-addr` + +- The address through which TiKV accesses service status from outside. +- Default: The value of `--status-addr` is used. +- If the client cannot connect to TiKV through the `--status-addr` address because of Docker or NAT network, you must manually set the `--advertise-status-addr` address. +- For example, the internal IP address of Docker is `172.17.0.1`, while the IP address of the host is `192.168.100.113` and the port mapping is set to `-p 20180:20180`. In this case, you can set `\-\-advertise-status-addr="192.168.100.113:20180"`. The client can find this service through `192.168.100.113:20180`. + ## `-C, --config` - The config file From db23396cf01500ff876327d72db24f5fdc707d46 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Thu, 18 Jun 2020 12:23:22 +0800 Subject: [PATCH 2/3] Update command-line-flags-for-tikv-configuration.md --- command-line-flags-for-tikv-configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command-line-flags-for-tikv-configuration.md b/command-line-flags-for-tikv-configuration.md index 268950d053237..b585f586599df 100644 --- a/command-line-flags-for-tikv-configuration.md +++ b/command-line-flags-for-tikv-configuration.md @@ -29,8 +29,8 @@ TiKV supports some readable unit conversions for command line parameters. + The port through which the TiKV service status is listened + Default: "20180" -+ The Prometheus statistics can be accessed via `http://host:status_port/metrics`. -+ The Profile data can be accessed via `http://host:status_port/debug/pprof/profile`. ++ The Prometheus can access this status information via `http://host:status_port/metrics`. ++ The Profile can access this status information via `http://host:status_port/debug/pprof/profile`. ## `--advertise-status-addr` From 3249729628365a79d5da95cf33eb12ca08aa79e7 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Thu, 2 Jul 2020 14:43:12 +0800 Subject: [PATCH 3/3] Update command-line-flags-for-tikv-configuration.md --- command-line-flags-for-tikv-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command-line-flags-for-tikv-configuration.md b/command-line-flags-for-tikv-configuration.md index b585f586599df..e3b3344c4cc59 100644 --- a/command-line-flags-for-tikv-configuration.md +++ b/command-line-flags-for-tikv-configuration.md @@ -37,7 +37,7 @@ TiKV supports some readable unit conversions for command line parameters. - The address through which TiKV accesses service status from outside. - Default: The value of `--status-addr` is used. - If the client cannot connect to TiKV through the `--status-addr` address because of Docker or NAT network, you must manually set the `--advertise-status-addr` address. -- For example, the internal IP address of Docker is `172.17.0.1`, while the IP address of the host is `192.168.100.113` and the port mapping is set to `-p 20180:20180`. In this case, you can set `\-\-advertise-status-addr="192.168.100.113:20180"`. The client can find this service through `192.168.100.113:20180`. +- For example, the internal IP address of Docker is `172.17.0.1`, while the IP address of the host is `192.168.100.113` and the port mapping is set to `-p 20180:20180`. In this case, set `\-\-advertise-status-addr="192.168.100.113:20180"`. The client can find this service through `192.168.100.113:20180`. ## `-C, --config`