简体   繁体   English

AWS Classic Load Balancer HTTP终止

[英]AWS Classic Load Balancer HTTP termination

AWS a say: AWS 一个说法:

When you use HTTP (layer 7) for both front-end and back-end connections, your load balancer parses the headers in the request and terminates the connection before sending the request to the back-end instances. 当您将HTTP(第7层)用于前端和后端连接时,负载均衡器会解析请求中的标头并终止连接,然后再将请求发送到后端实例。

What is that supposed to mean? 那是什么意思? I know I should use Keep-Alive, etc. but this piece of writing is really confusing. 我知道我应该使用Keep-Alive等功能,但是这篇文章确实令人困惑。 If the connection is terminated(and by the way it's TCP, not HTTP level) then a server will have no way to respond to the request. 如果连接被终止(并且以TCP方式(而不是HTTP级别)终止),则服务器将无法响应请求。

" terminating the connection" in this context means that the load balancer is the connection endpoint, ie that there is one TCP connection between the client and the load balancer and another one between the load balancer and the server. 在这种情况下, 终止连接”表示负载均衡器是连接端点,即,客户端和负载均衡器之间存在一个TCP连接,负载均衡器和服务器之间存在另一个TCP连接。 Terminating the connection does not mean closing it at the TCP level. 终止连接并不意味着在TCP级别关闭 Instead the connection between client and load balancer is kept open and the payload is forwarded between this connection and the connection(s) between load balancer and server(s). 相反,客户端和负载平衡器之间的连接保持打开状态,并且有效负载在此连接与负载平衡器和服务器之间的连接之间转发。

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

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