-->

2013-08-09

php-fpm

http://redmine.lighttpd.net/issues/2422
http://www.ibm.com/developerworks/jp/linux/library/l-slurm-utility/
https://computing.llnl.gov/linux/slurm/high_throughput.html
https://sites.google.com/site/beingroot/articles/apache/socket-backlog-tuning-for-apache
http://www.linuxinstruction.com/?q=node/15
http://alpha-netzilla.blogspot.jp/2012/12/parameter-kernel.html

$ cat /etc/security/limits.conf | grep -vP "^#|^$"
* soft nofile 65535
* hard nofile 65535

$ rcsdiff /etc/config-archive/etc/php/fpm-php5.4/php-fpm.conf,v /etc/php/fpm-php5.4/php-fpm.conf
===================================================================
RCS file: /etc/config-archive/etc/php/fpm-php5.4/php-fpm.conf,v
retrieving revision 1.1
diff -r1.1 /etc/php/fpm-php5.4/php-fpm.conf
103a104
> listen.backlog = 65535
155c156
< pm.max_children = 50
---
> pm.max_children = 150
160a162
> pm.start_servers = 5
170c172
< pm.max_spare_servers = 35
---
> pm.max_spare_servers = 150
176a179
> pm.max_requests = 1000

$ rcsdiff /etc/config-archive/etc/nginx/nginx.conf,v /etc/nginx/nginx.conf
===================================================================
RCS file: /etc/config-archive/etc/nginx/nginx.conf,v
retrieving revision 1.1
diff -r1.1 /etc/nginx/nginx.conf
2a3
> worker_rlimit_nofile 65535;
7c8
<    worker_connections 1024;
---
>    worker_connections 65535;
49c50
<            listen 127.0.0.1;
---
>            listen 192.168.0.110:8081 backlog=65535;
55a57,62
>
>                 location ~ \.php($|/) {
>                 include fastcgi_params;
>                 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
>                 fastcgi_pass   127.0.0.1:9000;
>                 }

0 件のコメント: