Welcome! Log In Create A New Profile

Advanced

Re: pls. help for adding another parameter to ngx_upstream_server

moto kawasaki
November 29, 2013 02:06AM
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@kawasaki3.org>


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;
}
}
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

pls. help for adding another parameter to ngx_upstream_server

moto kawasaki 1000 November 15, 2013 03:38AM

Re: pls. help for adding another parameter to ngx_upstream_server

Vladimir Homutov 348 November 15, 2013 04:44AM

Re: pls. help for adding another parameter to ngx_upstream_server

moto kawasaki 379 November 16, 2013 04:34AM

Re: pls. help for adding another parameter to ngx_upstream_server

Maxim Dounin 392 November 18, 2013 09:10AM

Re: pls. help for adding another parameter to ngx_upstream_server Attachments

moto kawasaki 340 November 26, 2013 11:39AM

Re: pls. help for adding another parameter to ngx_upstream_server

Maxim Dounin 334 November 26, 2013 11:39AM

Re: pls. help for adding another parameter to ngx_upstream_server

moto kawasaki 296 November 26, 2013 09:08PM

Re: pls. help for adding another parameter to ngx_upstream_server

moto kawasaki 442 November 29, 2013 02:06AM

Re: pls. help for adding another parameter to ngx_upstream_server

Maxim Dounin 356 November 15, 2013 05:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready