You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by 鲁成祥 <97...@qq.com.INVALID> on 2021/11/15 12:30:13 UTC

io.tmp.dirs的配置如何做到高可用?

目前Flink Yarn集群上 io.tmp.dirs 统一配置了 /mnt/ssd/0/xxx,/mnt/ssd/1/xxx 两个磁盘路径,
最近遇到其中一块盘挂掉的情况, 一些job出现异常,一些并没有,
官方文档对这个配置的解释为:

io.tmp.dirs: The directories where Flink puts local data, defaults to the system temp directory (java.io.tmpdir&nbsp;property). If a list of directories is configured, Flink will rotate files across the directories.



有人可以帮解释下出现坏盘的影响面,以及这块高可用的实现情况吗?

Re: io.tmp.dirs的配置如何做到高可用?

Posted by Yang Wang <da...@gmail.com>.
在Yarn上部署时,会把所有的LOCAL_DIRS都设置为io.tmp.dirs。这样在某些情况下可以达到更好的性能

因为这个本来就是用来存放临时文件的,不存在高可用的问题。
如果有一块盘坏掉,目前YARN只能保证新起的container不再使用这块盘,现有正在使用这个盘的container不会处理
所以,只能等container自己失败退出了

Best,
Yang

鲁成祥 <97...@qq.com.invalid> 于2021年11月15日周一 下午8:30写道:

> 目前Flink Yarn集群上 io.tmp.dirs 统一配置了 /mnt/ssd/0/xxx,/mnt/ssd/1/xxx 两个磁盘路径,
> 最近遇到其中一块盘挂掉的情况, 一些job出现异常,一些并没有,
> 官方文档对这个配置的解释为:
>
> io.tmp.dirs: The directories where Flink puts local data, defaults to the
> system temp directory (java.io.tmpdir&nbsp;property). If a list of
> directories is configured, Flink will rotate files across the directories.
>
>
>
> 有人可以帮解释下出现坏盘的影响面,以及这块高可用的实现情况吗?