简体   繁体   English

kubernetes nginx 入口并发连接

[英]kubernetes nginx ingress concurrent connections

According to this link, the nginx.ingress.kubernetes.io/limit-connections annotation sets the number of concurrent connections allowed from a single IP address.根据链接, nginx.ingress.kubernetes.io/limit-connections注释设置了单个 IP 地址允许的并发连接数。 Is there a way I can sets the number of concurrent connections allowed in total?有没有办法可以设置总共允许的并发连接数?

Maybe are mistaking the concepts.也许是误解了概念。 This annotation is specific for handling with multiple connections with one client.此注释专门用于处理与一个客户端的多个连接。 It has security purpose (mitigate DDoS attacks).它具有安全目的(减轻 DDoS 攻击)。

As @Crou said, if you are receiving a large amount of connections, you could scale up.正如@Crou所说,如果您收到大量连接,则可以扩大规模。 Or else, if you want to limit the connections to this service, you should define settings to not scale.否则,如果您想限制与此服务的连接,您应该将设置定义为不扩展。 But, you can run a out of service issue eventually.但是,您最终可能会遇到服务中断问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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