pls. help for adding another parameter to ngx_upstream_server

moto kawasaki moto at kawasaki3.org
Fri Nov 29 07:04:58 UTC 2013


Dear Mr. Dounin and list members,

Thank you very much for your suggestion, I finally made it work !!
Now we can write something like;

    http {
        proxy_setfib N;
    }

or

    http {
        server{
            proxy_setfib N;
        }
    }

and the connections toward upstream server are setsockopt(SETFIB)-ed.


I need to test the code, but anyway I have confirmed in the most
simple configuration.
patch and configuration file attached.


Thank you very much.


Best Regards,



-- 
moto kawasaki <moto at kawasaki3.org>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.proxy_setfib.patch
Type: text/x-patch
Size: 5728 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20131129/f071a854/attachment.bin>
-------------- next part --------------
daemon off;

error_log /home/moto/local/logs/nginx-error.log info;

events {
}

http {
	include mime.types;
	default_type application/octet-stream;

	access_log /home/moto/local/logs/nginx-access.log;

	proxy_connect_timeout  1;	# default=60 sec

#	proxy_setfib 5;

	upstream UPSTREAM {
		#proxy_setfib 5;
		#proxy_bind 127.0.0.1;
		server 10.200.195.70:80 max_fails=3 fail_timeout=300;
	}

	server {
		listen 101.78.7.14:8080 default_server bind setfib=5;
		server_name hostn3.oka.lac.jp;

		proxy_setfib 5;

		location / {
			proxy_pass http://UPSTREAM;
		}
	}
}


More information about the nginx-devel mailing list