简体   繁体   中英

Is there a way to increase the maximum number of tcp connections allowed to a docker container?

如何配置与 docker 容器(Linux 上的 docker)的最大允许 tcp 连接?

Max TCP raw socket connections will be a 16-bit int, so 65,535 max connections (which will be part of the TCP/IP IPv4 spec, probably). Some of these are reserved for other things, so in reality around 64,000.

There's isn't a way to boost the connection limits, unless you can share sockets etc. If you've actually hit the max TCP connections, you'll need to load balance or find a way of sharing the socket connections somehow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM