By default, NGINX distributes requests among the servers in the group according to their weights using the round-robin method. The weight parameter of the serverdirective sets the weig" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

18143453325 在線咨詢 在線咨詢
18143453325 在線咨詢
所在位置: 首頁 > 營銷資訊 > 建站知識 > 如何基于權重解析域名? 如:把www.aaa.com域名按4:6的比例解析到ip地址a和b?

如何基于權重解析域名? 如:把www.aaa.com域名按4:6的比例解析到ip地址a和b?

時間:2023-02-17 20:28:01 | 來源:建站知識

時間:2023-02-17 20:28:01 來源:建站知識

Server Weights

By default, NGINX distributes requests among the servers in the group according to their weights using the round-robin method. The weight parameter of the serverdirective sets the weight of a server, by default, it is 1:

upstream backend { server backend1.example.com weight=5; server backend2.example.com; server 192.0.0.1 backup;}In the example, http://backend1.example.com has weight 5; the other two servers have the default weight (1), but the one with IP address 192.0.0.1 is marked as a backup server and does not receive requests unless both of the other servers are unavailable. With this configuration of weights, out of every six requests, five are sent http://backend1.example.com and one to backend2.example.com.


參考:https://www.nginx.com/resources/admin-guide/load-balancer/

關鍵詞:地址

74
73
25
news

版權所有? 億企邦 1997-2025 保留一切法律許可權利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關閉