On Jan 28, 2008 10:59 AM, eliott <<a href="mailto:eliott@cactuswax.net">eliott@cactuswax.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On 1/28/08, <a href="mailto:rkmr.em@gmail.com">rkmr.em@gmail.com</a> <<a href="mailto:rkmr.em@gmail.com">rkmr.em@gmail.com</a>> wrote:<br>> this is my config for a web server that does only static files mostly gifs,<br>
> pngs and jpgs.. is there any improvement i can do in this like is there some<br>> sort of caching that can be enabled? or any other improvements that can be<br>> done to this..<br>><br>> ------------------------------------------------------------------<br>
> #user mark;<br>> worker_processes 1;<br>> error_log logs/error_staticfarm.log;<br>><br>> pid logs/nginx_staticfarm.pid;<br>> events {<br>> worker_connections 1024;<br>> }<br>><br>
> http {<br>> include mime.types;<br>> default_type application/octet-stream;<br>><br>> #access_log logs/access_staticfarm.log;<br>><br>> sendfile on;<br>> #tcp_nopush on;<br>
><br>> keepalive_timeout 0;<br>> #keepalive_timeout 10;<br>><br>> gzip on;<br>> server {<br>> listen 6080;<br>> server_name localhost;<br>> #access_log logs/host.access.log main;<br>
> location /nginx_status {<br>> stub_status on;<br>> access_log off;<br>> }<br>> location /static{<br>> root /home/mark/staticfarm/;<br>> access_log off;<br>
> }<br>> }<br>> }<br>><br><br><br></div></div>If you have more than one cpu, you could up the worker_processes to<br>match the number of cpus you have. Depends on the traffic load you are</blockquote>
<div><br>is this number of cpus or number of cores? if I have two quad cores, <br>worker_process = 8<br><br>is this right?<br> </div></div>