The default maximum number of open file descriptors is too low 4096, should be 1000000"}提示文件打开

进行PD-recover的ansible-playbook deploy.yml --tags=pd操作


提示这个。已经分别 在10.2.43.11 10.243.12 10.243.13上面 进行修改
%E5%9B%BE%E7%89%87

%E5%9B%BE%E7%89%87
是在/etc/profile进行修改的
%E5%9B%BE%E7%89%87
请问如何处理

请参考 [FAQ] the maximum number of open file descriptors is too small The default maximum number of open file descriptors is too low ,同时在操作系统看下是否生效了

上面 截图了。已经生效了的

  1. 请按照帖子先检查下 tidb 和 root 用户下 的 -Sn 和 -Hn 值
  2. 可以执行 ulimit -HSn 1000000 ,之后新开一个session 试试
  3. 是否是docker 环境,或者虚拟机?

都是物理机

此操作重新执行下,如果设置成功 tidb-ansible 会通过检查。

建议使用 tiup 部署 3.x 及以上版本

我在 k8s 上有同样的问题,还没有找到解决方案,网上全是关于 Docker 的, 一点屁用都没有。