nginx 4层负载均衡_使用Nginx进行第7层负载平衡

nginx 4层负载均衡When deploying a back end application you might need to have multiple instances for handling large traffic. A load balancer is used to manage these large number of requests between the mul...
摘要由CSDN通过智能技术生成

nginx 4层负载均衡

When deploying a back end application you might need to have multiple instances for handling large traffic. A load balancer is used to manage these large number of requests between the multiple servers.

部署后端应用程序时,您可能需要具有多个实例来处理大量流量。 负载平衡器用于管理多个服务器之间的大量请求。

Layer 7 load balancing operates at the high‑level application layer. It can make a load‑balancing decision based on the content of the message (the URL or cookie, for example). It then makes a new TCP connection to the selected upstream server (or reuses an existing one, by means of HTTP keepalives) and writes the request to the server.

第7层负载平衡在高层应用程序层上运行。 它可以根据消息的内容(例如URL或cookie)做出负载平衡决策。 然后,它与选定的上游服务器建立新的TCP连接(或通过HTTP keepalive复用现有的服务器),并将请求写入服务器。

A device that performs Layer 7 load balancing is often referred to as a reverse‑proxy server.

执行第7层负载平衡的设备通常称为反向代理服务器

The Client doesn’t connect to a server directly. The request from the clients is received by the load balancer. The load balancer decides to which server the request will be sent. The server receives the request and sends back the response to the load balancer which forwards the response to the client over port 80.

客户端不直接连接到服务器。 来自客户端的请求由负载均衡器接收。 负载平衡器决定将请求发送到哪个服务器。 服务器接收请求,并将响应发送回负载平衡器,负载平衡器将响应通过端口80转发给客户端。

Below is an example. Consider a load balancer which manages traffic between three servers. The load balancer is using a round-robin algorithm for this purpose.

下面是一个例子。 考虑一个负载均衡器,它管理三个服务器之间的流量。 负载均衡器为此使用循环算法。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值