Welcome! Log In Create A New Profile

Advanced

strange flow increase when using nginx as a proxy

May 08, 2012 05:09AM
os:centos 5.5 64bit(as a router)
nginx:1.2.0

request----->[ nic_in----->nginx----->nic_out ]----->backend_server

STRANGE FLOW INCREASE:
request->linux:5Mbps linux->backend_server:5Mbps
linux->request:90Mbps backend_server->linux:60Mbps

iptables is used to redirect data to nginx, such as:
/sbin/iptables -t nat -A PREROUTING -i nic_in -p tcp --dport 80 -j REDIRECT --to-ports 8888

nginx.conf:
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}

http
{
charset off;
override_charset off;
proxy_buffering off;
resolver 8.8.4.4;
proxy_buffer_size 64k;
proxy_buffers 4 64k;
log_format main '[$time_local] $remote_addr $host "$request" $status $body_bytes_sent "$http_referer" ';
server
{
listen 8888;
location /
{
proxy_set_header Host $host;
#proxy_set_header Accept-Encoding "";
proxy_pass http://$http_host$request_uri;
}
}
}
Subject Author Posted

strange flow increase when using nginx as a proxy

medialy May 08, 2012 05:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready