Is the log.file.max-days parameter in PD not supported for dynamic modification?

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

Original topic: pd中的log.file.max-days参数不支持动态修改吗

| username: terry0219

[TiDB Usage Environment] Test/PoC
[TiDB Version] 7.5
Want to modify the log retention time of PD
mysql> set config pd log.file.max-days = 7;
Query OK, 0 rows affected, 3 warnings (0.01 sec)

mysql> show warnings;
±--------±-----±------------------------------------------------------------------------------------------+
| Level | Code | Message |
±--------±-----±------------------------------------------------------------------------------------------+
| Warning | 1105 | bad request to http://xx.x.xx:2379/pd/api/v1/config: “only support changing log level” |
| Warning | 1105 | bad request to http://x.x.x.xx:2379/pd/api/v1/config: “only support changing log level” |
| Warning | 1105 | bad request to http://x.x.x.xx:2379/pd/api/v1/config: “only support changing log level” |
±--------±-----±------------------------------------------------------------------------------------------+
3 rows in set (0.01 sec)
This error is prompted

| username: WalterWj | Original post link

This warning is quite clear, it only supports log level modification. :thinking:

| username: terry0219 | Original post link

Well, it’s just a bit surprising that online modification of log retention time is not supported.

| username: Miracle | Original post link

If modification is not supported, shouldn’t it be an error? Why is it showing a warning…

| username: Kongdom | Original post link

As a developer, I think it’s normal.
I believe the classification levels are different: an error indicates a request failure, while a warning means the request was successful but encountered a known non-bug issue.

| username: dba远航 | Original post link

If modification is not supported but it shows OK, it’s a bit strange.

| username: wangccsy | Original post link

This is probably an issue with the TiDB programmers. Maybe the review wasn’t done properly.

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

tiup cluster edit-config modification

| username: WinterLiu | Original post link

It seems that dynamic modification is indeed not supported.

| username: redgame | Original post link

Not supported