<!-- review: finished -->

<a id="external-combined-upstreams"></a>

# Combined Upstreams

该模块允许将多个服务器组组合为一个。

它引入了 `add_upstream`、`combine_server_singlets` 和
`extend_single_peers` 指令，这些指令可在 `upstream` 配置块内使用；
同时新增 `upstrand` 配置块，用于创建更高层级的 `upstream` 块。
此外，引入 `dynamic_upstrand` 指令，用于在运行时选择 `upstream` 块。

<a id="installation-107"></a>

## 安装

要 [安装](https://cn.angie.software//angie/docs/installation/index.md#install-packages) 该模块，请使用以下软件包之一：

- Angie：`angie-module-combined-upstreams`
- Angie PRO：`angie-pro-module-combined-upstreams`

<a id="loading-the-module-107"></a>

## 加载模块

要使用该模块，请在 `main{}` 上下文中加载它：

```nginx
load_module modules/ngx_http_combined_upstreams_module.so;
```

<a id="additional-information-107"></a>

## 其他信息

详细文档和源代码可在以下位置获取：
[https://github.com/lyokha/nginx-combined-upstreams-module](https://github.com/lyokha/nginx-combined-upstreams-module)

模块指令的配置示例与详细说明：

- [http://lin-techdet.blogspot.com/2011/10/nginx.html](http://lin-techdet.blogspot.com/2011/10/nginx.html)
- [http://lin-techdet.blogspot.com/2015/12/nginx.html](http://lin-techdet.blogspot.com/2015/12/nginx.html)
