ダイナミックロードバランシングモードスイッチ

set.lua

戻りnginx.conf上流の名前によるリターン「upstream_server_hashを」均衡ビジネスロジック負荷に応じて定義されました

nginx.conf

上流upstream_server_hash {

}

上流upstream_server_rotation {

}

位置/ {

  set_by_lua_file $ upstream_server /xxx/set.lua。#$ upstream_server == upstream_server_hash

  proxy_passます。http:// $ upstream_server。

}

 

 

 

 

おすすめ

転載: www.cnblogs.com/zhangxuedonga/p/11942405.html