<div dir="ltr">+1 point for such QOS <br><br><div class="gmail_quote">2008/8/1 Tit Petric <span dir="ltr">&lt;<a href="mailto:black@scene-si.org">black@scene-si.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Request scheduling as in queuing with priority, QoS?<br>
<br>
Meaning, one or more location should have a higher priority in<br>
completing the request, by going into the front of the queue?<br>
<br>
For example, you have 1000 requests per second, and 10 of them are for<br>
the location /realtime.jpg, and you want those requests to jump in front<br>
of the queue and return the responses ASAP?<br>
<div><div></div><div class="Wj3C7c"><br>
Chancey wrote:<br>
&gt; nginx is great ! but it has only one mode and one request scheduling<br>
&gt; in Load balance.<br>
&gt; if it has more options in load balance. it will be perfect<br>
&gt; 2008-08-01<br>
&gt; ------------------------------------------------------------------------<br>
&gt; Chancey<br>
&gt; ------------------------------------------------------------------------<br>
&gt; *发件人:* Igor Sysoev<br>
&gt; *发送时间:* 2008-08-01 13:49:26<br>
&gt; *收件人:* <a href="mailto:nginx@sysoev.ru">nginx@sysoev.ru</a><br>
&gt; *抄送:*<br>
&gt; *主题:* Re: Memcached module -- unix domain socket support? (too many<br>
&gt; TIME_WAITs..)<br>
&gt; On Thu, Jul 31, 2008 at 09:54:03PM -0700, Kon Wilms wrote:<br>
&gt; &gt; I have a pool of memcached servers running on localhost with<br>
&gt; &gt; connection to nginx, feeding motion jpeg data out via static JPEGs to<br>
&gt; &gt; a flash application. The load is pretty high on the server because of<br>
&gt; &gt; this with each client running 3 GETs from memcached every second (i.e.<br>
&gt; &gt; 3fps).<br>
&gt; &gt;<br>
&gt; &gt; Nginx works fine, however, the problem I have is that thousands of<br>
&gt; &gt; TIME_WAITs are created from the memcached GET requests, which I would<br>
&gt; &gt; like to eliminate. I&#39;ve already tuned the kernel but this has not<br>
&gt; &gt; reduced it enough to handle a couple thousand viewers on the server.<br>
&gt; &gt;<br>
&gt; &gt; Is there any way to connect nginx&#39;s memcached module to memcached via<br>
&gt; &gt; unix domain socket or perhaps UDP, or any other ideas on how to fix<br>
&gt; &gt; this problem?<br>
&gt; Adding unix socket support to ngx_http_memcached_module should be easy,<br>
&gt; but I&#39;m not sure if memcached suppot unix sockets.<br>
&gt; BTW why do you serve local images from memcached ?<br>
&gt; It&#39;s better for both CPU and memory to serve them from local filesystem<br>
&gt; using sendfile.<br>
&gt; --<br>
&gt; Igor Sysoev<br>
&gt; <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br></div>