<html><head><style> p {margin-top:0px;margin-bottom:0px;} </style></head>
<body><div style="font-size:12px; font-family:굴림,굴림체,Gulim,Baekmuk Dotum,Undotum,Apple Gothic,Latin font,sans-serif;">
<table border=0 width=100% style='background: ;' cellpadding=0 cellspacing=0 align=center>
<tr>
<td valign=top style='padding:8pt;'>
<div style="line-height: 1.5; background-color: transparent; font-family: 돋움; color: #333333; font-size: 10pt; browser: msie" class=tx-hanmail-content-wrapper><P>Hello. </P>
<P> </P>
<P>As a proxy nginx can load balance by round robin and can throttle bandwidth per client but it doesn't throttle bandwidth per backend server.</P>
<P> </P>
<P>what if (unfortunately) a backend server is processing really few request and the responses are too big so that those occupy all bandwidth? In that case proxy need to stop forwarding more requests to the server even if it has few connections. isn't that advanced load balancing? (i looked for 3rd party module that can do it but i couldn't find yet)</P>
<P> </P>
<P>i tried to add the function that throttle bandwidth per server.</P>
<P>but the problem is round robin module can't get the response size instead upstream module can. To throttle bandwidth per server upstream module need to keep additional data about how much bandwidth per server is used.</P>
<P> </P>
<P>then there is a depenent problem. upstream module and round robin module were separated well. because upstream module just entrusted the round-robin module with choosing a backend server.</P>
<P> </P>
<P> but if upstream module should keep bandwidth data per server i'd rather put code of choosing least bandwidth server in upstream module(i don't need to make separate choosing peer module and i think it shake the basic thought of nginx module separation) </P>
<P> </P>
<P>what do you think? and do you have any plan to throttle bandwidth per backend server for advanced load-balancing?</P>
<P> </P>
<P>Thanks and happy new year!</P></div></td></tr>
</table>
</div></body></html>
<!-- __Hanmail-sig-Start__ -->
<br><br><a href="mailto:jkoh5@hanmail.net"><img src="http://nametag.hanmail.net/ZWdhGWpUum9UVT4YkiKb4A00" border="0"></a>
<!-- __Hanmail-sig-End__ -->
<img src="http://wwl1576.hanmail.net:4280/@from=jkoh5&rcpt=nginx%40nginx%2Eorg&msgid=%3C20111231132543%2EHM%2E00000000001b3yC%40jkoh5%2Ewwl1576%2Ehanmail%2Enet%3E">