免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7794 | 回复: 2
打印 上一主题 下一主题

[服务应用] supervisor对tcp连接数有限制 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2019-08-12 11:49 |只看该作者 |倒序浏览
我有一个python写的tcp服务进程,在shell下直接启动的时候,可以稳定的接受3000个链接(更多连接没测试),但是挂到supervisor下的时候,只能接受 1000个左右的连接就连不进去了,提示是连接超时。在阿里云和百度云上测试都是一样的结果,系统是ubuntu16.04,我看了supervisor的所有配置项,没找到跟tcp连接有关联的配置,不知大家有没遇到过这个问题,有经验的麻烦帮忙指点一下,不胜感激。

论坛徽章:
0
2 [报告]
发表于 2019-08-14 10:18 |只看该作者
都没有人解决过这样的问题吗?

论坛徽章:
0
3 [报告]
发表于 2019-08-23 15:17 |只看该作者
minfds

The minimum number of file descriptors that must be available before supervisord will start successfully. A call to setrlimit will be made to attempt to raise the soft and hard limits of the supervisord process to satisfy minfds. The hard limit may only be raised if supervisord is run as root. supervisord uses file descriptors liberally, and will enter a failure mode when one cannot be obtained from the OS, so it’s useful to be able to specify a minimum value to ensure it doesn’t run out of them during execution. These limits will be inherited by the managed subprocesses. This option is particularly useful on Solaris, which has a low per-process fd limit by default.

Default: 1024

Required: No.

Introduced: 3.0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP