<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">The question is buried
inside the details. It's, I guess, this:<br>
<br>
<span><pre wrap="">"But i wanted your expert opinion on how to check, test and verify my
config params for nginx and php5-fpm. I want to be 100% sure i haven't
allocated too many processes."</pre> </span><br>
<div class="moz-signature"><span><span style="color: rgb(51, 51, 51);">Openly
yours,<br>
<span style="font-weight: bold;">Shankar Dhanasekaran</span></span><span
style="color: rgb(51, 51, 51);"></span><br>
</span><br>
</div>
<br>
<br>
Mike Dupont wrote:
<blockquote
cite="mid:CAF0qKV0EnvnE3XcD--yGS0C1Adw12qEpYV+06G-iHUO9Siap6Q@mail.gmail.com"
type="cite">
<pre wrap="">Ok,
so what is your question?
thanks,
mike
On Sun, Jun 24, 2012 at 12:23 AM, bp1000 <a class="moz-txt-link-rfc2396E" href="mailto:nginx-forum@nginx.us"><nginx-forum@nginx.us></a> wrote:
</pre>
<blockquote type="cite"><pre wrap="">Nginx community, i've recently switched to this awesome software which
has performed admirably under load testing.
I host a php/mysql driven site that with each page view serves results
from multiple external xml feeds in realtime. Once we have the XML data
we cache results to reduce load.
I run nginx / php5-fpm / memcache and APC. Site gets > 100,000 searches
per day. Each query takes between 1 and 4 seconds depending on the
search. So as you can imagine the processes don't open and close as
quickly as some more basic php sites. Server load is around 3 average
for a quad core box. So OK...
But i wanted your expert opinion on how to check, test and verify my
config params for nginx and php5-fpm. I want to be 100% sure i haven't
allocated too many processes. So without pasting my entire config, i
will show just the bits i'm concerned i wish to check with you guys.
php5-fpm tweaks
Concerns - is max_children / start servers too high? Would they take up
CPU processes wasting resources?
pm = dynamic
pm.max_children = 30
pm.start_servers = 15
pm.min_spare_servers = 5
pm.max_spare_servers = 30
pm.max_requests = 511
listen.backlog = 1024
Worker_processes 4
worker_connections 8192
fastcgi_params
Concerns - is my fastcgi_buffers too much? The reason why i set them
high is that each XML result can contain a lot of data.
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
Even under load, memory usage only reaches about 45% so perhaps i'm
wasting an opportunity to cache more things in memory.
Thank you
Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="http://forum.nginx.org/read.php?2,227820,227820#msg-227820">http://forum.nginx.org/read.php?2,227820,227820#msg-227820</a>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre></blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body></html>