-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tikv: add command line flag --config-info
#10615
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/cc @Oreoxmt |
@glorv Could you please invite a tech review? Thanks |
@BusyJay PTAL |
/status LGT1 |
## `--config-info <FORMAT>` | ||
|
||
+ 输出各个配置项的取值信息并退出 | ||
+ 目前仅支持 JSON 格式的输出 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 目前仅支持 JSON 格式的输出 | |
+ `FORMAT` 可选值:`json`。 |
@@ -49,6 +49,12 @@ TiKV 的命令行参数支持一些可读性好的单位转换。 | |||
+ 默认:0(无限) | |||
+ PD 需要使用这个值来对整个集群做 balance 操作。(提示:你可以使用 10GB 来替代 10737418240,从而简化参数的传递)。 | |||
|
|||
## `--config-info <FORMAT>` | |||
|
|||
+ 输出各个配置项的取值信息并退出 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 输出各个配置项的取值信息并退出 | |
+ 按照指定的 `FORMAT` 输出各个配置项的取值信息并退出。 |
|
||
+ 输出各个配置项的取值信息并退出 | ||
+ 目前仅支持 JSON 格式的输出 | ||
+ 目前仅支持输出每个配置项的名字(Name)、默认值(DefaultValue) 和当前配置值(ValueInFile)。当执行此命令时,若同时指定了 `-C` 或 `--config` 参数,则在对应的配置文件包含的配置项会同时输出 `当前配置值`,其他未指定的配置项仅输出默认值。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在这里是否需要给用户一个简单的输出结果示例,让用户可以直观地感受到这个配置的作用,如 tikv/tikv#12956 (comment)
|
||
+ 输出各个配置项的取值信息并退出 | ||
+ 目前仅支持 JSON 格式的输出 | ||
+ 目前仅支持输出每个配置项的名字(Name)、默认值(DefaultValue) 和当前配置值(ValueInFile)。当执行此命令时,若同时指定了 `-C` 或 `--config` 参数,则在对应的配置文件包含的配置项会同时输出 `当前配置值`,其他未指定的配置项仅输出默认值。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 目前仅支持输出每个配置项的名字(Name)、默认值(DefaultValue) 和当前配置值(ValueInFile)。当执行此命令时,若同时指定了 `-C` 或 `--config` 参数,则在对应的配置文件包含的配置项会同时输出 `当前配置值`,其他未指定的配置项仅输出默认值。 | |
+ 目前仅支持以 JSON 格式输出每个配置项的名字 (Name)、默认值 (DefaultValue) 和当前配置值 (ValueInFile)。当执行此命令时,若同时指定了 `-C` 或 `--config` 参数,则在对应的配置文件包含的配置项会同时输出当前配置值,其他未指定的配置项仅输出默认值,示例如下: | |
```json | |
ToDo: Add an example here | |
``` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
Co-authored-by: TomShawn <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: dde30bf
|
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?