锘??xml version="1.0" encoding="utf-8" standalone="yes"?>97视频一区,亚洲理论在线,亚洲国产综合视频在线观看http://www.aygfsteel.com/liuyf8688/category/54506.htmlzh-cnWed, 27 Aug 2014 08:18:38 GMTWed, 27 Aug 2014 08:18:38 GMT60Session persistence in Nginxhttp://www.aygfsteel.com/liuyf8688/articles/417389.htmlliuyf8688liuyf8688Wed, 27 Aug 2014 02:16:00 GMThttp://www.aygfsteel.com/liuyf8688/articles/417389.htmlhttp://www.aygfsteel.com/liuyf8688/comments/417389.htmlhttp://www.aygfsteel.com/liuyf8688/articles/417389.html#Feedback0http://www.aygfsteel.com/liuyf8688/comments/commentRss/417389.htmlhttp://www.aygfsteel.com/liuyf8688/services/trackbacks/417389.html


Please note that with round-robin or least-connected load balancing, each subsequent client’s request can be potentially distributed to a different server. There is no guarantee that the same client will be always directed to the same server.

If there is the need to tie a client to a particular application server — in other words, make the client’s session “sticky” or “persistent” in terms of always trying to select a particular server — the ip-hash load balancing mechanism can be used.

With ip-hash, the client’s IP address is used as a hashing key to determine what server in a server group should be selected for the client’s requests. This method ensures that the requests from the same client will always be directed to the same server except when this server is unavailable.

To configure ip-hash load balancing, just add the ip_hash directive to the server (upstream) group configuration:

upstream myapp1 {     
        ip_hash;
        server srv1.example.com;
        server srv2.example.com;
        server srv3.example.com;
}


liuyf8688 2014-08-27 10:16 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 新余市| 朝阳县| 正镶白旗| 宜川县| 延长县| 安丘市| 兴仁县| 突泉县| 武穴市| 石嘴山市| 九江市| 玉屏| 沧源| 武城县| 固始县| 宁明县| 桑日县| 南部县| 合作市| 堆龙德庆县| 曲阜市| 罗定市| 昌邑市| 乌拉特后旗| 柳林县| 无锡市| 涞水县| 金沙县| 定南县| 体育| 区。| 永康市| 东阿县| 同心县| 新昌县| 兴宁市| 西昌市| 定日县| 固原市| 嘉义市| 哈尔滨市|