From 4ab5b3c32ae1a380924ed9e807506f382458fccf Mon Sep 17 00:00:00 2001 From: tangwz Date: Wed, 28 Oct 2020 15:12:28 +0800 Subject: [PATCH] cherry pick #4056 to release-4.0 Signed-off-by: ti-srebot --- command-line-flags-for-tidb-configuration.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md index 98bbd435ae73a..57b33d04c70b9 100644 --- a/command-line-flags-for-tidb-configuration.md +++ b/command-line-flags-for-tidb-configuration.md @@ -26,6 +26,16 @@ When you start the TiDB cluster, you can use command-line options or environment - Default: "" - If you have specified the configuration file, TiDB reads the configuration file. If the corresponding configuration also exists in the command line options, TiDB uses the configuration in the command line options to overwrite that in the configuration file. For detailed configuration information, see [TiDB Configuration File Description](/tidb-configuration-file.md). +## `--config-check` + +- Checks the validity of the configuration file and exits +- Default: false + +## `--config-strict` + +- Enforces the validity of the configuration file +- Default: false + ## `--cors` - Specifies the `Access-Control-Allow-Origin` value for Cross-Origin Request Sharing (CORS) request of the TiDB HTTP status service @@ -49,6 +59,11 @@ When you start the TiDB cluster, you can use command-line options or environment - Default: "info" - You can choose from "debug", "info", "warn", "error", or "fatal". +## `--lease` + +- The duration of the schema lease. It is **dangerous** to change the value unless you know what you do. +- Default: 45s + ## `--log-file` - The log file