Welcome! Log In Create A New Profile

Advanced

Re: upstream keepalive - call for testing

All files from this thread

File Name File Size   Posted by Date  
upstream.patch 2.3 KB open | download Matthieu Tourne 08/12/2011 Read message
ngx_http_upstream_keepalive.patch 542 bytes open | download Matthieu Tourne 08/12/2011 Read message
upstream.patch 2.6 KB open | download Matthieu Tourne 08/12/2011 Read message
August 26, 2011 12:28PM
I tried to disabled my script, but still cause a coredump.

here is my nginx.conf


user www-data;
worker_processes 4;

error_log /var/log/nginx/error.log ;
pid /var/run/nginx.pid;

worker_rlimit_core 8000M;
working_directory /var/www/ngx_coredump/;
debug_points abort;

worker_rlimit_nofile 131072;
events {
worker_connections 16384;
use epoll;
# multi_accept on;
}

http {
log_format logger '$http_host||$remote_addr||$msec||$status||$request_length||$bytes_sent||"$request"||"$http_referer"||"$http_user_agent"||$upstream_cache_status||$upstream_status';


include /etc/nginx/mime.types;

access_log /var/log/nginx/access.log;


sendfile on;

# double size of page (get : getconf PAGESIZE)
client_header_buffer_size 64k;
#open_file_cache max=150000 inactive=20s;
#open_file_cache_valid 2s;
#open_file_cache_min_uses 1;
large_client_header_buffers 4 256k;

client_max_body_size 100m;
client_body_buffer_size 128k;
proxy_temp_path /dev/shm/proxy_temp;
proxy_connect_timeout 5s;
proxy_send_timeout 10;
proxy_read_timeout 10;
proxy_buffer_size 4k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_ignore_client_abort on;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
#first response buffer size
fastcgi_buffer_size 256K;
#continue response buffer size
fastcgi_buffers 32 256K;
#busy buffer
fastcgi_busy_buffers_size 2048k;
fastcgi_temp_file_write_size 2048k;

index index.html index.htm index.php;

#tcp_nopush: Sends the HTTP response headers in one packet.
tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 5;
# make it small for hard load server

#tcp_nodelay: Disables the Nagle buffering algorithm. Well, that cleared that one up!
# General web use does require a response from the client , tune it to off
tcp_nodelay off;

server_tokens off;

gzip off;
gzip_disable msie6;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}






=======================================================================================
sites-enabled/site.conf

proxy_cache_path /var/www/cdn_cache levels=1:2 keys_zone=cache_proxy:2048m max_size=4096m;

upstream backend {
server 10.0.0.1 weight=3 fail_timeout=2s;
keepalive 30;
}
limit_req_zone $binary_remote_addr zone=limit_cdn:32m rate=10r/s;
server {
listen 80;
server_name 10.0.0.2;

limit_req zone=limit_cdn burst=10;

add_header X-Via "$hostname";
add_header X-Debug "$server_addr";

root /var/www/cdn;
access_log /dev/shm/logger logger;

error_log /var/log/nginx/ct.error;
gzip on;
gzip_buffers 4 16k;
gzip_min_length 1k;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
gzip_proxied any;

location ~ ^/purge(/.*) {
proxy_cache_purge cache_proxy $1$is_args$args;
}
location ~ \.(swf)$
{
proxy_cache cache_proxy;
proxy_cache_valid 200 304 1h;
proxy_cache_key $uri;
add_header X-Cache "$upstream_cache_status from $hostname";
expires 600s;
proxy_ssl_session_reuse on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "keep-alive";

proxy_pass http://backend;
}
location ~ ^/images/(.+)
{
proxy_cache cache_proxy;
proxy_cache_valid 200 304 8h;
proxy_cache_key $uri;
add_header X-Cache "$upstream_cache_status from $hostname";
expires 1h;
proxy_ssl_session_reuse on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "keep-alive";

proxy_pass http://backend;
}
location ~ ^/sitemap/(.+)
{
proxy_cache cache_proxy;
proxy_cache_valid 200 304 8h;
proxy_cache_key $uri;
add_header X-Cache "$upstream_cache_status from $hostname";
expires 8h;
proxy_ssl_session_reuse on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "keep-alive";

proxy_pass http://backend;
}
location ~ ^/search
{
proxy_cache cache_proxy;
proxy_cache_valid 200 304 600s;
proxy_cache_key $uri$is_args$args;
add_header X-Cache "$upstream_cache_status from $hostname";
expires 600s;
proxy_ssl_session_reuse on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "keep-alive";

proxy_pass http://backend;
}
location / {

proxy_set_header X-Real-IP $remote_addr;
add_header X-Cache "MISS from $hostname";
proxy_set_header Connection "keep-alive";
proxy_buffering off; #Direct send to client
proxy_ssl_session_reuse on;
proxy_pass http://backend;
}
rewrite "^/$" /index.htm;
}
Subject Author Posted

upstream keepalive - call for testing

Maxim Dounin August 01, 2011 12:10PM

Re: upstream keepalive - call for testing

liseen August 02, 2011 09:38AM

Re: upstream keepalive - call for testing

Maxim Dounin August 02, 2011 01:34PM

Re: upstream keepalive - call for testing

António P. P. Almeida August 02, 2011 11:28AM

Re: upstream keepalive - call for testing

Maxim Dounin August 02, 2011 01:38PM

Re: upstream keepalive - call for testing

David Yu August 02, 2011 01:44PM

Re: upstream keepalive - call for testing

Maxim Dounin August 02, 2011 01:52PM

Re: upstream keepalive - call for testing

David Yu August 02, 2011 01:54PM

Re: upstream keepalive - call for testing

Maxim Dounin August 02, 2011 02:48PM

Re: upstream keepalive - call for testing

David Yu August 02, 2011 03:10PM

Re: upstream keepalive - call for testing

liseen August 02, 2011 11:58PM

Re: upstream keepalive - call for testing

splitice August 03, 2011 01:22AM

Re: upstream keepalive - call for testing

Matthieu Tourne August 03, 2011 08:08PM

Re: upstream keepalive - call for testing

Maxim Dounin August 04, 2011 02:54AM

Re: upstream keepalive - call for testing

splitice August 08, 2011 12:46AM

Re: upstream keepalive - call for testing

Maxim Dounin August 08, 2011 05:24AM

Re: upstream keepalive - call for testing

splitice August 08, 2011 05:36AM

Re: upstream keepalive - call for testing

splitice August 08, 2011 05:38AM

Re: upstream keepalive - call for testing Attachments

Matthieu Tourne August 12, 2011 03:34PM

Re: upstream keepalive - call for testing

Maxim Dounin August 12, 2011 04:00PM

Re: upstream keepalive - call for testing

Matthieu Tourne August 12, 2011 05:14PM

Re: upstream keepalive - call for testing

Maxim Dounin August 12, 2011 06:28PM

Re: upstream keepalive - call for testing Attachments

Matthieu Tourne August 12, 2011 06:44PM

Re: upstream keepalive - call for testing

Matthieu Tourne August 16, 2011 07:32PM

Re: upstream keepalive - call for testing

Maxim Dounin August 16, 2011 08:24PM

Re: upstream keepalive - call for testing

magicbear August 24, 2011 01:11PM

Re: upstream keepalive - call for testing

Maxim Dounin August 24, 2011 08:06PM

Re: upstream keepalive - call for testing

sv August 24, 2011 09:18PM

Re: upstream keepalive - call for testing

magicbear August 25, 2011 01:30AM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 03:08AM

Re: upstream keepalive - call for testing

Maxim Dounin August 26, 2011 05:40AM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 07:01AM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 07:04AM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 07:28AM

Re: upstream keepalive - call for testing

Maxim Dounin August 26, 2011 07:38AM

upstream keepalive close connections actively

cfsego August 02, 2011 10:50PM

Re: upstream keepalive close connections actively

Maxim Dounin August 03, 2011 03:40AM

RE: upstream keepalive close connections actively

Charles Chen August 03, 2011 05:54AM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 07:54AM

Re: upstream keepalive - call for testing

Maxim Dounin August 26, 2011 11:56AM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 12:17PM

Re: upstream keepalive - call for testing

Maxim Dounin August 26, 2011 02:08PM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 03:00PM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 12:28PM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 01:00PM

Re: upstream keepalive - call for testing

magicbear August 26, 2011 01:51PM

Re: upstream keepalive - call for testing

magicbear August 28, 2011 01:07PM

Re: upstream keepalive - call for testing

magicbear August 28, 2011 01:10PM

Re: upstream keepalive - call for testing

Maxim Dounin August 28, 2011 09:48PM

Re: upstream keepalive - call for testing

magicbear August 31, 2011 04:04PM

Re: upstream keepalive - call for testing

splitice August 31, 2011 09:58PM

Re: upstream keepalive - call for testing

magicbear September 01, 2011 09:38AM

Re: upstream keepalive - call for testing

magicbear September 04, 2011 01:33PM

Re: upstream keepalive - call for testing

Maxim Dounin September 04, 2011 02:22PM

Re: upstream keepalive - call for testing

magicbear September 04, 2011 02:34PM

Re: upstream keepalive - call for testing

Maxim Dounin September 05, 2011 03:10AM

Re: upstream keepalive - call for testing

ビリビリⅤ September 05, 2011 11:44AM

Re: upstream keepalive - call for testing

Maxim Dounin September 05, 2011 02:04PM

Re: upstream keepalive - call for testing

magicbear September 06, 2011 02:39AM

Re: upstream keepalive - call for testing

Matthieu Tourne September 07, 2011 07:36PM

Re: upstream keepalive - call for testing

Maxim Dounin September 08, 2011 05:28AM

Re: upstream keepalive - call for testing

Maxim Dounin September 08, 2011 11:44AM

Re: upstream keepalive - call for testing

Matthieu Tourne September 08, 2011 06:06PM

Re: upstream keepalive - call for testing

magicbear September 14, 2011 06:54PM

Re: upstream keepalive - call for testing

magicbear September 15, 2011 01:52PM

Re: upstream keepalive - call for testing

splitice September 15, 2011 09:44PM

Re: upstream keepalive - call for testing

philipp December 29, 2011 07:47AM

Re: upstream keepalive - call for testing

Maxim Dounin December 29, 2011 10:06AM

Re: upstream keepalive - call for testing

alexscott March 08, 2012 09:30AM

Re: upstream keepalive - call for testing

Andrew Alexeev March 09, 2012 01:20AM

Re: upstream keepalive - call for testing

alexscott March 12, 2012 10:35AM

Re: upstream keepalive - call for testing

Maxim Dounin March 12, 2012 10:56AM

Re: upstream keepalive - call for testing

alexscott March 12, 2012 01:40PM

Re: upstream keepalive - call for testing

alexscott March 12, 2012 03:55PM

Re: upstream keepalive - call for testing

Maxim Dounin March 12, 2012 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready