Seeking Accurate Answers

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 求准确答案

| username: Running

Is the answer C correct?

| username: ShawnYan | Original post link

Is this a homework exercise or an exam question?
If it’s a homework exercise, it was explained in the course.
If it’s an exam question, then this post might disappear.

| username: Running | Original post link

Just have doubts about the answer.

| username: ShawnYan | Original post link

| username: 像风一样的男子 | Original post link

I think C is the answer.

| username: Running | Original post link

The answer is A, but I also think C is correct.

| username: 像风一样的男子 | Original post link

The official documentation states that no restart is required.

| username: 啦啦啦啦啦 | Original post link

This depends on which version the video is based on.

| username: TiDBer_jYQINSnf | Original post link

This is how I understand it: configuration refers to the settings in the configuration file :smile:, and those set are called environment variables.
From this perspective, modifying the configuration requires a restart. TiKV, TiDB, and PD don’t have a reload feature like Nginx, right?

| username: tidb菜鸟一只 | Original post link

Online modification of cluster configuration parameters is actually an experimental feature. It can take effect, but you still need to use the tiup edit-config command to modify the corresponding configuration items. Otherwise, operations such as upgrade and reload will overwrite the results of the online configuration modifications. Therefore, you cannot simply modify the configuration online from the client; you need to use it in conjunction with the tiup edit-config command.

| username: 我是咖啡哥 | Original post link

Answer: A
C refers to system variables, not cluster parameters.

| username: h5n1 | Original post link

Yes, isn’t setting the config done by connecting with the MySQL client and then executing it?

| username: 我是咖啡哥 | Original post link

After modifying the TiKV configuration items online, the TiKV configuration file will also be automatically modified. However, you still need to use the tiup edit-config command to modify the corresponding configuration items, otherwise operations such as upgrade and reload will overwrite the results of the online configuration modifications.

| username: zhanggame1 | Original post link

The set config modifies not parameters, but variables.

| username: h5n1 | Original post link

Who told you that?

| username: 像风一样的男子 | Original post link

I went to check the teacher’s explanation, and the answer is indeed A. Modifying the cluster configuration does require a reload to take effect. In option C, modifying cluster parameters can only be done through the tiup cluster edit-config command; it cannot be done using a MySQL client.

| username: h5n1 | Original post link

The answer has a problem.

| username: redgame | Original post link

Can’t scrutinize too deeply, just go with the answer.

| username: Running | Original post link

Can’t find the standard answer anymore :joy:

| username: ShawnYan | Original post link

So you are avoiding my question, is this a screenshot of the PTCA exam question?

There is a difference between cluster configuration and system variables.

After modifying the TiKV configuration items online, the TiKV configuration file will also be automatically modified. However, you still need to use the tiup edit-config command to modify the corresponding configuration items, otherwise operations such as upgrade and reload will overwrite the results of the online configuration modifications. For details on modifying configurations, please refer to: Modify Configuration Parameters Using TiUP. After executing tiup edit-config, there is no need to execute the tiup reload operation.

For PD configuration items that can be modified online, once successfully modified, they will be persisted to etcd and will not be persisted to the configuration file. Subsequent operations will be based on the configuration in etcd.