tidb、tikv、pd节点参数配置

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
v5.0.3

【问题】
目前想要咨询以下几个问题:
1、集群部署完成后,tidb、tikv、pd节点的参数默认设置,要怎么查看?

例如:查看tikv.toml参数配置文件,参数配置不全,怎么查看所有tikv、pd、tidb配置参数的默认值?

WARNING: This file is auto-generated. Do not edit! All your modification will be overwritten!

You can use ‘tiup cluster edit-config’ and ‘tiup cluster reload’ to update the configuration

All configuration items you want to change can be added to:

server_configs:

tikv:

aa.b1.c3: value

aa.b2.c4: value

log-level = “info”

[readpool]
[readpool.coprocessor]
use-unified-pool = true
[readpool.storage]
use-unified-pool = false

[storage]
[storage.block-cache]
capacity = “10GB”

2、连接到tidb server节点,查看GLOBAL_VARIABLES表,这里的参数设置,和tidb配置文件参数之间的关系是什么呢?为什么有些配置文件参数,在GLOBAL_VARIABLES表中查看不到呢?

1 个赞

配置文件可以参考这里
https://docs.pingcap.com/zh/tidb/stable/tidb-configuration-file#tidb-配置文件描述

配置文件和系统变量是不同的。系统变量可以参考这里
https://docs.pingcap.com/zh/tidb/stable/system-variables

1 个赞

SHOW CONFIG 语句用于展示 TiDB 各个组件当前正在应用的配置。
请注意,配置与系统变量作用于不同维度,请不要混淆,如果希望获取系统变量信息,请使用 SHOW VARIABLES 语法。

1 个赞

感谢你的回复,show config查看的就是tidb集群各个组件配置参数,而 SHOW VARIABLES查看的是系统变量,例如tikv.toml参数配置文件中没有,使用的就是默认配置参数值,这样理解没问题吧

1 个赞

是这样的

非常感谢

:handshake::handshake::handshake:

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。