Combined Upstreams#

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

它引入了 add_upstreamcombine_server_singletsextend_single_peers 指令,这些指令可在 upstream 配置块内使用; 同时新增 upstrand 配置块,用于创建更高层级的 upstream 块。 此外,引入 dynamic_upstrand 指令,用于在运行时选择 upstream 块。

安装#

安装 该模块,请使用以下软件包之一:

  • Angie:angie-module-combined-upstreams

  • Angie PRO:angie-pro-module-combined-upstreams

加载模块#

要使用该模块,请在 main{} 上下文中加载它:

load_module modules/ngx_http_combined_upstreams_module.so;

其他信息#

详细文档和源代码可在以下位置获取: lyokha/nginx-combined-upstreams-module

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