<div dir="ltr">why ip_hash ?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-16 15:29 GMT+08:00 <a href="mailto:gaoping@richinfo.cn">gaoping@richinfo.cn</a> <span dir="ltr"><<a href="mailto:gaoping@richinfo.cn" target="_blank">gaoping@richinfo.cn</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><span></span>hi</div><div> <span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px">When my nginx</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px"> is</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px"> below</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px"> this structure,</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px">Nginx</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> access to the</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> IP</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> proxy server</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> by</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> IP</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px">,</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> then</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> nginx</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> ip_hash</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> load balancing</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px">,</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> will</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> all requests are</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> routed to</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> the same tomcat</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px">,</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> do not know if you have</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> what</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> good method to solve the</span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px">.</span></div>
<div><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"> </span><span style="font-size:10.5pt;background-color:window;color:rgb(51,51,51);font-family:arial;line-height:22px"><span style="font-size:13px"> </span></span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px">The ip_hash function</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px"> can be</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px"> introduced into</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:13px;line-height:22px"> a custom IP.</span><span style="background-color:window;color:rgb(51,51,51);font-family:arial;font-size:10.5pt;line-height:22px"> </span></div>
<div> <font color="#ff0000"> <span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px">Prerequisite</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px">:</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> can not</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> change the existing</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> structure</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px">,</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> and</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> nginx access to the</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> IP is only a</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px">proxy server</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px">,</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> and</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> IP</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> client</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> request is</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> not</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px"> true</span><span style="font-size:10.5pt;background-color:window;font-family:arial;line-height:22px">,</span></font></div>
<div><span style="color:rgb(51,51,51);font-family:arial;line-height:22px"> </span></div>
<div><img src="cid:_Foxmail.1@a8b10439-150d-5215-fa15-584b2f0f250d" border="0"></div><hr style="width:210px;min-height:1px" align="left" color="#b5c4df" size="1"><span class="HOEnZb"><font color="#888888">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:gaoping@richinfo.cn" target="_blank">gaoping@richinfo.cn</a></div></div></span></div>
</font></span></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>