tiflash 参数raftstore-proxy.log.file.max-days如何修改

tiflash 参数raftstore-proxy.log.file.max-days 如何修改
版本8,试了几种方法没修改成功

为什么show config,出来的参数名,不能直接修改呢?
这样显得很奇怪

tiup cluster edit-config
field raftstore-proxy.log.file.max-days not found in type spec.TiFlashSpec

tiflash:
raftstore-proxy.log.file.max-days 这里报错

是放在哪个特殊的标签下嘛

https://docs.pingcap.com/zh/tidb/stable/tiflash-configuration/#max-days-从-v540-版本开始引入

tiflash:
log.file.max-days=3

试试这样。

1 个赞

raftstore-proxy这个参数是在哪里看到的?没有看到类似的,唯一看到的是这个。

搜了一下还真有,这样执行sql语句试试

SET CONFIG tiflash `raftstore-proxy.log.file.max-days` = 3;

| Warning | 1105 | bad request to http://10.192.1.1:20292/config: failed to update, error: “config file can not be changed” |
| Warning | 1105 | bad request to http://10.192.1.1:20292/config: failed to update, error: “config file can not be changed” |
±--------±-----±------------------------------------------------------------------------------------------------------------+

直接使用set config ,报这个错误。感觉是无法在线修改

:joy:但是配置文件里面没有这个参数啊。 如果是想设置日志文件保留天数,改配置文件的这个配置。
raftstore-proxy.log.file.max-days估计是内部的,不能修改。

1 个赞

mysql> show config where name like ‘%raftstore-proxy.log.file.max-days%’;
±--------±-------------------±-------------------------------------------------------------±------+
| Type | Instance | Name | Value |
±--------±-------------------±-------------------------------------------------------------±------+
| tiflash | 10.192.1.162:3930 | engine-store.config.logger.raftstore-proxy.log.file.max-days | 7 |
| tiflash | 10.192.1.162:3930 | raftstore-proxy.log.file.max-days | 0 |
| tiflash | 10.192.1.161:3930 | engine-store.config.logger.raftstore-proxy.log.file.max-days | 7 |
| tiflash | 10.192.1.161:3930 | raftstore-proxy.log.file.max-days | 0 |
±--------±-------------------±-------------------------------------------------------------±------+

嗯,tiflash的参数,我也没单独设置log.file.max-days,但是这里是7,不知道是哪里生效了

配置了,这个参数应该就是
engine-store.log.file.max-days | 7 |

show config where name like ‘%days%’ and type=‘tiflash’;

1 个赞

这个参数管理感觉有点乱,在文档中也无从查起
可以show config 出来的参数,无法简单的直接在线修改
在配置文件中,直接粘贴参数,好多也无法reload

是的,在线帮助中就这个