zl程序教程

您现在的位置是:首页 >  工具

当前栏目

五分钟进步系列之nginx(一)

Nginx 系列 进步 五分钟
2023-06-13 09:17:29 时间

学习方式:

  1. 先读英文的原版,如果你能看懂就可以到此为止的了。
  2. 如果你看不懂,可以再看一下我给的较高难度的英文单词的翻译。
  3. 如果还是看不懂可以去最下面看我翻译的汉语。

下面是我在nginx官网中找到的一段话,它给我们描述了nginx的负载均衡的三种方式。

一、英文原版

Load balancing methods

1、round-robin — requests to the application servers are distributed in a round-robin fashion

2、least-connected — next request is assigned to the server with the least number of active connections

3、ip-hash — a hash-function is used to determine what server should be selected for the next request (based on the client’s IP address)

二、重点词汇的翻译

round-robin: 轮询 assigned: 指定

三、中文

1、轮询 — 访问请求会以轮询的方式分散到后端应用服务

2、最少连接 — 下一个请求会被指定到活动链接最少的服务上

3、ip-hash — hash的功能是用来决定下一个请求会被指定到哪个服务上(基于客户端的IP来决定)