luojiyin87 最近的时间轴更新
luojiyin87

luojiyin87

V2EX 第 171623 号会员,加入于 2016-05-04 09:59:10 +08:00
luojiyin87 最近回复了
迪卡侬 赫利肯 海丽汉森(亚马逊海外购)
可以用 Nginx 一类软件配置简单的 basic auth
12 天前
回复了 leaderone2 创建的主题 iPhone 1500 元以下的主力手机
如果是果系 就剩 se 了
我禁用了阿里系的第三方 cookie , 总弹出验证。好在哪里?
52 天前
回复了 DarylDiao 创建的主题 美酒与美食 程序员喝什么茶
德国双心叶黄素
69 天前
回复了 wdzj 创建的主题 硬件 Logi 过保必坏的你们遇到过吗?
自己买的二手的 master 2 , 已经用了两年多了
101 天前
回复了 yuuk520 创建的主题 Node.js 压测出现 no such file or directory, scandir 'XXX'
docker 默认是没 ulimit ,可以打开无限的 I/O 句柄,不会主动释放,耗尽主机的 I/O 句柄。
```shell
grep 'Limit' /lib/systemd/system/docker.service
# Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229.
StartLimitBurst=3
# Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230.
StartLimitInterval=60s
# Having non-zero Limit*s causes performance problems due to accounting overhead
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
```

但是主机内是有 ulimit ,可以分配给 docker 的 I/O 句柄是有限。

```shell
ulimit -n
1024
```
1 调高主机的 ulimit ,2 限制 docker 的 ulimit
除非全部静态化,然后上 cdn 。 买防火墙,对于个人太贵了。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3613 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 04:57 · PVG 12:57 · LAX 21:57 · JFK 00:57
Developed with CodeLauncher
♥ Do have faith in what you're doing.