I'm opening this post in hope to get some info on this setup from real world usage, not examples, since i can not find a lot of info about vbulletin with this setup, not to mention the vbseo addition.
After lots of digging some headache and a dead site i got my site working again on a different server with php-fpm and nginx
Firt, after an almost unresponsive server and being puzzled a few hours, php-5.3 does not seem to play nice (too much server load) after downgrading to 5.2 apache and nginx behaved nicely...
and then i had to move away the sql server because it went crazy/slow
My runing config is:
nginx.conf:
my nginx (only/default) vhost:Code:user www-data; worker_processes 1; worker_rlimit_nofile 8192; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { worker_connections 2048; use epoll; } http { server_tokens off; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; # error_log /var/log/nginx/error.log notice; sendfile on; tcp_nopush on; tcp_nodelay on; # keepalive_timeout 0; keepalive_timeout 20 15; keepalive_requests 200; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }
my server is now a P3 with 1Gb RAM, load is near 2.5 in average, memory, 900 of 1Gb used, 60Mb swapped.Code:server { listen 112.123.123.234:80; server_name somesite.com; rewrite ^(.*) http://www.somesite.com$1 permanent; } server { listen 123.123.123.234:80 default; root /var/www/nginx/default/htdocs/; gzip on; gzip_min_length 1100; gzip_buffers 8 16k; gzip_comp_level 1; gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; gzip_disable "MSIE [1-6]\."; output_buffers 1 32k; postpone_output 1460; ## vbseo location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_index index.php; fastcgi_send_timeout 30; fastcgi_read_timeout 30; fastcgi_buffers 128 4k; fastcgi_buffer_size 4k; fastcgi_cache_use_stale timeout; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_intercept_errors on; if (-f $request_filename) { fastcgi_pass unix:/tmp/php5-fpm.sock; } } location / { index index.php; rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; if (!-e $request_filename) { rewrite ^/(.*)$ /vbseo.php last; } } if ($request_filename ~ \.php$ ) { rewrite ^/(.*)$ /vbseo.php last; } ## /vbseo location ~* (css|js|png|jpe?g|gif|ico)$ { expires 2h; } ## no permito q vean los htacces location ~ /\.ht { deny all; } location /nginx_status { stub_status on; } }
on a normal day i can go to 300 users online (200 right now)
page generation time is between 1 and 2 secs :S, im also using APC
/nginx-status:
Code:Active connections: 57 server accepts handled requests 26308 26308 72280 Reading: 3 Writing: 2 Waiting: 52
------------------------------------------------
How do you see it? what wold you change, and why?
i got interested on the try_files option i saw in other post, however i did not fully understand if this causes a bug with moving posts, which for now seems like i dont have it.
i also had to disable attachments rewrite and im having lots of 404's!!! (any fix?)


LinkBack URL
About LinkBacks





Reply With Quote
