This is my current php5-fpm configuration
[www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 user = www-data group = www-data pm = dynamic pm.max_children = 50 pm.start_servers = 25 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.max_requests = 2500 pm.status_path = /php-status slowlog = log/$pool.log.slow chdir = / ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f email@example.com ;php_flag[display_errors] = off ;php_admin_value[error_log] = /var/log/fpm-php.www.log ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M ENDFILECONTENT
I am more dev than ops, so please assume I am quite ignorant about Linux and general server admin knowledge.
My linux box is a
Ubuntu 12.10 (Quantal Quetzal) 1024 MB RAM, 40 GB Disk from Rackspace.
My purpose is to use it for a single website running on cakephp 2.3
Right now, I am running Jenkins on the same server to help with continuous deployment for the application code on the server.
Once we have enough traffic, I intend to move the Jenkins into a separate server.
At this point in time, I have yet to install Jenkins, but I have already installed Php5-fpm and Nginx. The memory usage has gone from 4% to 41% after installing php5-fpm.
I have yet to move my application code to this server and yet to install Jenkins on the server.
My questions are:
how do I read this php5-fpm configuration i have setup, starting from pm to pm.status_path?now this is a standalone question over here.
- what are the implications if i change some of the settings, especially pm.max_children?
- how do i optimize the settings for my setup, considering that I intend to install jenkins as well as running a website? What if I run two websites?