Skip to content

Commit

Permalink
cherry pick pingcap#4056 to release-4.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
tangwz authored and ti-srebot committed Oct 28, 2020
1 parent a9d561b commit 4ab5b3c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions command-line-flags-for-tidb-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4ab5b3c

Please sign in to comment.