From 071be972f5501afb5f0e7c9bdf0dc40352165f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Thu, 3 Nov 2022 08:43:59 +0100 Subject: [PATCH 1/4] command-line-flags-for-tidb-configuration: Add missing flags --- command-line-flags-for-tidb-configuration.md | 52 +++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md index b558ec59ab145..a9743b4aae28e 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -14,6 +14,11 @@ When you start the TiDB cluster, you can use command-line options or environment - Default: `""` - This address must be accessible by the rest of the TiDB cluster and the user. +## `--alsologtostderr` + +- Also send logging to standard error when a log file is supplied. +- Default: `false` + ## `--config` - The configuration file @@ -42,6 +47,16 @@ When you start the TiDB cluster, you can use command-line options or environment - The TiDB server monitors this address. - The `"0.0.0.0"` address monitors all network cards by default. If you have multiple network cards, specify the network card that provides service, such as `192.168.100.113`. +## `--initialize-insecure` + +- Bootstrap tidb-server in insecure mode +- Default: `true` + +## `--initialize-secure` + +- Bootstrap tidb-server in secure mode +- Default: `false` + ## `--enable-binlog` + Enables or disables TiDB binlog generation @@ -58,6 +73,21 @@ When you start the TiDB cluster, you can use command-line options or environment - The duration of the schema lease. It is **dangerous** to change the value unless you know what you do. - Default: `45s` +## `--log_backtrace_at` + +- When logging hits line `file:N`, emit a stack trace. +- Default: `""` + +## `--log_dir` + +- If non-empty, write log files in this directory +- Default: `""` + +## `--logtostderr` + +- Log to standard error instead of files. +- Default: `false` + ## `--log-file` - The log file @@ -156,12 +186,22 @@ When you start the TiDB cluster, you can use command-line options or environment - The `HOST` used to monitor the status of TiDB service - Default: `0.0.0.0` +## `-stderrthreshold` + +- Logs at or above this threshold go to stderr. +- Default: `""` + ## `--store` - Specifies the storage engine used by TiDB in the bottom layer - Default: `"unistore"` - You can choose "unistore" or "tikv". ("unistore" is the local storage engine; "tikv" is a distributed storage engine) +## `--temp-dir` + +- TiDB temporary directory +- Default: `"/tmp/tidb"` + ## `--token-limit` - The number of sessions allowed to run concurrently in TiDB. It is used for traffic control. @@ -196,4 +236,14 @@ When you start the TiDB cluster, you can use command-line options or environment ## `--repair-list` + The names of the tables to be repaired in the repair mode. -+ Default: `""` \ No newline at end of file ++ Default: `""` + +## `-v` + +- log level for V logs +- Default: `""` + +## `-vmodule` + +- comma-separated list of `pattern=N` settings for file-filtered logging +- Default: `""` From 4dbe02e024685afd2b4f4e276e2297bf9daffa6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Thu, 3 Nov 2022 09:12:53 +0100 Subject: [PATCH 2/4] Remove goglang/glog related flags --- command-line-flags-for-tidb-configuration.md | 30 -------------------- 1 file changed, 30 deletions(-) diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md index a9743b4aae28e..c91a2e275e456 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -14,11 +14,6 @@ When you start the TiDB cluster, you can use command-line options or environment - Default: `""` - This address must be accessible by the rest of the TiDB cluster and the user. -## `--alsologtostderr` - -- Also send logging to standard error when a log file is supplied. -- Default: `false` - ## `--config` - The configuration file @@ -73,21 +68,6 @@ When you start the TiDB cluster, you can use command-line options or environment - The duration of the schema lease. It is **dangerous** to change the value unless you know what you do. - Default: `45s` -## `--log_backtrace_at` - -- When logging hits line `file:N`, emit a stack trace. -- Default: `""` - -## `--log_dir` - -- If non-empty, write log files in this directory -- Default: `""` - -## `--logtostderr` - -- Log to standard error instead of files. -- Default: `false` - ## `--log-file` - The log file @@ -237,13 +217,3 @@ When you start the TiDB cluster, you can use command-line options or environment + The names of the tables to be repaired in the repair mode. + Default: `""` - -## `-v` - -- log level for V logs -- Default: `""` - -## `-vmodule` - -- comma-separated list of `pattern=N` settings for file-filtered logging -- Default: `""` From a7b41901283422d315c27d5260d44551151c2622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Thu, 3 Nov 2022 09:13:52 +0100 Subject: [PATCH 3/4] Remove goglang/glog related flags (part 2) --- command-line-flags-for-tidb-configuration.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md index c91a2e275e456..0c8c290b65445 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -166,11 +166,6 @@ When you start the TiDB cluster, you can use command-line options or environment - The `HOST` used to monitor the status of TiDB service - Default: `0.0.0.0` -## `-stderrthreshold` - -- Logs at or above this threshold go to stderr. -- Default: `""` - ## `--store` - Specifies the storage engine used by TiDB in the bottom layer From b359f7182fbbb8e72b097ce6343c90e0c763c379 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Thu, 3 Nov 2022 16:22:49 +0800 Subject: [PATCH 4/4] reorder a flag --- command-line-flags-for-tidb-configuration.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md index 0c8c290b65445..2f165081663b6 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -35,6 +35,11 @@ When you start the TiDB cluster, you can use command-line options or environment - Specifies the `Access-Control-Allow-Origin` value for Cross-Origin Request Sharing (CORS) request of the TiDB HTTP status service - Default: `""` +## `--enable-binlog` + ++ Enables or disables TiDB binlog generation ++ Default: `false` + ## `--host` - The host address that the TiDB server monitors @@ -44,19 +49,14 @@ When you start the TiDB cluster, you can use command-line options or environment ## `--initialize-insecure` -- Bootstrap tidb-server in insecure mode +- Bootstraps tidb-server in insecure mode - Default: `true` ## `--initialize-secure` -- Bootstrap tidb-server in secure mode +- Bootstraps tidb-server in secure mode - Default: `false` -## `--enable-binlog` - -+ Enables or disables TiDB binlog generation -+ Default: `false` - ## `-L` - The log level @@ -174,7 +174,7 @@ When you start the TiDB cluster, you can use command-line options or environment ## `--temp-dir` -- TiDB temporary directory +- The temporary directory of TiDB - Default: `"/tmp/tidb"` ## `--token-limit`