Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command-line-flags-for-tidb-configuration: Add missing flags #11132

Merged
merged 4 commits into from
Nov 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 51 additions & 1 deletion command-line-flags-for-tidb-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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: `""`
+ Default: `""`

## `-v`

- log level for V logs
- Default: `""`

## `-vmodule`

- comma-separated list of `pattern=N` settings for file-filtered logging
- Default: `""`