Proszę o pomoc w optymalizacji, ew. jakieś wskazówki na co zwrócić uwagę.
Czy zmiana nasłuchiwania po porcie 9018 na socket, może zmniejszyć te waiting time'y?


Nginx.conf
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 600;
use epoll;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
log_format extended '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
client_max_body_size 64m;
##
# Virtual Host Configs
##
server {
##Port IPv4 address/port
listen 80;
##Domain with "www"
server_name www.domena.com;
##Rewrite "www" to non "www"
rewrite ^/(.*) http://domena.com/$1 permanent;
}
server {
##Port IPv4 address/port
listen 80;
##Root directory
root /home/domena_com/public_html;
##Index file
index index.php index.html index.htm;
##Domain
server_name domena.com;
##Access.log file location
access_log /var/log/nginx/vhosts/domena_com-access.log extended;
##Error.log file location
error_log /var/log/nginx/vhosts/domena_com-error.log warn;
##Directives for favicon.ico file
location = /favicon.ico {
expires max;
# log_not_found off;
# access_log off;
}
##Directives for robots.txt file
location = /robots.txt {
allow all;
# log_not_found off;
# access_log off;
}
##Directives for specified files
#location ~* \.(js|css|png|jpg|jpeg|gif)$ {
# expires 48h;
# log_not_found off;
#}
##Ignore apache's configs like .htaccess
location ~ /\.ht {
deny all;
access_log off;
log_not_found off;
}
##Wordpress rewrite
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
if (!-e $request_filename) {
rewrite ^.+?(/wp-.*) $1 last;
rewrite ^.+?(/.*\.php)$ $1 last;
rewrite ^ /index.php last;
}
location / {
try_files $uri $uri/ /index.php /index.html;
}
##Use PHP for *.php
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9018;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/domena_com/public_html$fastcgi_script_name;
}
}
I konfiguracja php-fpm:
[domena.com] listen = 127.0.0.1:9018 listen.allowed_clients = 127.0.0.1 user = pyzio_eu group = pyzio_eu pm = dynamic pm.max_children = 50 pm.start_servers = 3 pm.min_spare_servers = 1 pm.max_spare_servers = 5 chdir = / ;php_admin_value[safe_mode] = 0 php_admin_value[open_basedir] = /home/domena_com/public_html:/usr/share/php5:/tmp php_admin_value[disable_functions] = dl,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_i















