<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000000 size=2>I wish nginx can't only have
round-robin scheduling </FONT><FONT face=Verdana color=#000080 size=2><FONT
color=#000000>, it would be added more scheduling like
LVS(IPVS).</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2008-08-01 </FONT></DIV><FONT
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>Chancey</SPAN>
</FONT></DIV><FONT face=Verdana color=#000080 size=2>
<HR>
</FONT>
<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Tit Petric </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2008-08-01 15:56:40
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> nginx@sysoev.ru
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: Direct Routing of load
balancing would be added in feature? </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Request scheduling as in queuing with priority, QoS?</DIV>
<DIV> </DIV>
<DIV>Meaning, one or more location should have a higher priority in</DIV>
<DIV>completing the request, by going into the front of the queue?</DIV>
<DIV> </DIV>
<DIV>For example, you have 1000 requests per second, and 10 of them are for</DIV>
<DIV>the location /realtime.jpg, and you want those requests to jump in front</DIV>
<DIV>of the queue and return the responses ASAP?</DIV>
<DIV> </DIV>
<DIV>Chancey wrote:</DIV>
<DIV>> nginx is great ! but it has only one mode and one request scheduling</DIV>
<DIV>> in Load balance.</DIV>
<DIV>> if it has more options in load balance. it will be perfect</DIV>
<DIV>> 2008-08-01</DIV>
<DIV>> ------------------------------------------------------------------------</DIV>
<DIV>> Chancey</DIV>
<DIV>> ------------------------------------------------------------------------</DIV>
<DIV>> *发件人:* Igor Sysoev</DIV>
<DIV>> *发送时间:* 2008-08-01 13:49:26</DIV>
<DIV>> *收件人:* nginx@sysoev.ru</DIV>
<DIV>> *抄送:*</DIV>
<DIV>> *主题:* Re: Memcached module -- unix domain socket support? (too many</DIV>
<DIV>> TIME_WAITs..)</DIV>
<DIV>> On Thu, Jul 31, 2008 at 09:54:03PM -0700, Kon Wilms wrote:</DIV>
<DIV>>
> I have a pool of memcached servers running on localhost with</DIV>
<DIV>>
> connection to nginx, feeding motion jpeg data out via static JPEGs to</DIV>
<DIV>>
> a flash application. The load is pretty high on the server because of</DIV>
<DIV>>
> this with each client running 3 GETs from memcached every second (i.e.</DIV>
<DIV>> > 3fps).</DIV>
<DIV>> ></DIV>
<DIV>>
> Nginx works fine, however, the problem I have is that thousands of</DIV>
<DIV>>
> TIME_WAITs are created from the memcached GET requests, which I would</DIV>
<DIV>>
> like to eliminate. I've already tuned the kernel but this has not</DIV>
<DIV>>
> reduced it enough to handle a couple thousand viewers on the server.</DIV>
<DIV>> ></DIV>
<DIV>>
> Is there any way to connect nginx's memcached module to memcached via</DIV>
<DIV>>
> unix domain socket or perhaps UDP, or any other ideas on how to fix</DIV>
<DIV>> > this problem?</DIV>
<DIV>> Adding unix socket support to ngx_http_memcached_module should be easy,</DIV>
<DIV>> but I'm not sure if memcached suppot unix sockets.</DIV>
<DIV>> BTW why do you serve local images from memcached ?</DIV>
<DIV>> It's better for both CPU and memory to serve them from local filesystem</DIV>
<DIV>> using sendfile.</DIV>
<DIV>> -- </DIV>
<DIV>> Igor Sysoev</DIV>
<DIV>> <A href="http://sysoev.ru/en/">http://sysoev.ru/en/</A></DIV>
<DIV> </DIV></FONT></DIV></BODY></HTML>