<!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=#000080 size=2><FONT color=#000000>nginx is great
! but it has only one mode and one request scheduling</FONT><FONT color=#000000>
in Load balance.</FONT></FONT></DIV>
<DIV>if it has more options in load balance. it will be perfect</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> Igor Sysoev </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2008-08-01 13:49:26
</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: Memcached module -- unix
domain socket support? (too many TIME_WAITs..) </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>On Thu, Jul 31, 2008 at 09:54:03PM -0700, Kon Wilms wrote:</DIV>
<DIV> </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> </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> </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> </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>