Permalink
Browse files

tuned APC and PHP-FPM settings for better concurrency

  • Loading branch information...
1 parent 212174b commit b64a7fe391c5bdfd4d62e0a5fd9488ec9236a697 @themightychris themightychris committed May 31, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 kernel-lib/services/php-fpm.js
@@ -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.