Replies: 3 comments 2 replies
-
上面描述没太清楚预期是什么?可以再描述下。 代码里有就是支持的。参数意义参考下force_release_deleted_file_fd_timeout https://help.aliyun.com/document_detail/32278.html?spm=a2c4g.28958.0.i1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
想通过此参数配置来延长 容器被销毁时间。现在容器内的日志目录是通过emptyDir挂载,logtail使用daemonset方式监听emptyDir目录,想通过此参数配置来控制容器被销毁的时间来解决容器销毁时的日志丢失问题。 但是测试过程中发现此参数没有生效,即使配置后也会立即释放文件句柄信息。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
句柄释放很多条件,影响因素很多。文件是否读完也是一个因素。你上面测试可以改成文件持续写入的场景下进行,不要是静态文件。 方便的话麻烦登记下使用场景吧#693 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
logtail version: 1.6.0
force_release_deleted_file_fd_timeout: 120
尝试删除文件后, 文件句柄立即被释放。
DEFINE_FLAG_INT32(force_release_deleted_file_fd_timeout,
"force release fd if file is deleted after specified seconds, no matter read to end or not",
120);
将源码中该值修改为120,重新编译打包后尝试仍是如此,请问现在开源版本是不支持该参数吗?
Beta Was this translation helpful? Give feedback.
All reactions