From 41cce7134b8a92a821f12cc622b64ab5b65b4bbe 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 7ea0853e636bd..6823b90b5c23f 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -13,6 +13,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 @@ -41,6 +46,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 @@ -57,6 +72,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 @@ -155,12 +185,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. @@ -195,4 +235,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 ef3c289146311eebadffff036c2a63f5cbccfdda 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 6823b90b5c23f..e6c2102cb7054 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -13,11 +13,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 @@ -72,21 +67,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 @@ -236,13 +216,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 1ef4bc486e09820acf0aa579658b982330fa0600 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 e6c2102cb7054..e2e4a4195db05 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -165,11 +165,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 5163bedf6a8ea83d7b758a54ebaf10e23c618948 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 e2e4a4195db05..4a41345fe2cb9 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -34,6 +34,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 @@ -43,19 +48,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 @@ -173,7 +173,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`