Skip to content

Commit

Permalink
tuned APC and PHP-FPM settings for better concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed May 31, 2012
1 parent 212174b commit b64a7fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kernel-lib/services/php-fpm.js
Expand Up @@ -163,10 +163,12 @@ exports.phpFpm.prototype.makeConfig = function() {
c += 'group = nobody\n';
c += 'listen = '+me.options.bindHost+':'+me.options.bindPort+'\n';
c += 'pm = dynamic\n';
c += 'pm.max_children = 5\n';
c += 'pm.start_servers = 2\n';
c += 'pm.max_children = 50\n';
c += 'pm.start_servers = 5\n';
c += 'pm.min_spare_servers = 1\n';
c += 'pm.max_spare_servers = 3\n';
c += 'pm.max_spare_servers = 10\n';
c += 'php_admin_value[apc.shm_size]=64M\n';
c += 'php_admin_value[apc.stat]=0\n';

return c;
};

0 comments on commit b64a7fe

Please sign in to comment.