Skip to content

DemonSet 方式在 ACK 中部署 ilogtail,删除 Pod 时出现 Terminating ,一直无法删除,只能强制删除 #511

Answered by yyuuttaaoo
hanzoi asked this question in Help
Discussion options

You must be logged in to vote

补充一些信息

  1. 从lsof的情况看,无法退出的容器看不到ilogtail持有句柄
  2. 怀疑是CentOS的bug,尝试设置 fs.may_detach_mounts=1,但上面帖子反馈报错。建议还能再尝试一下这个帖子的设置方法
    kubernetes-sigs/kubespray#8622 (comment)
  3. logtail支持在容器退出时,强制一定时间内释放句柄可以尝试
    https://help.aliyun.com/document_detail/32278.html
    docker_config_update_interval 这个可以改成1 会不会好点
    force_release_deleted_file_fd_timeout 这个改成0会立刻释放句柄
  4. 对于ilogtail文件打开过多的问题,可以看看/proc/$ilogtail_pid/fd,具体持有什么文件句柄了

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hanzoi
Comment options

@hanzoi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yyuuttaaoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants