<p dir="ltr">Hi,</p>
<p dir="ltr">Are you using free Nginx or Nginx Plus? Per my memory, server group reconfigure without restart is a Plus only feature.<br>
</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 14, 2015, 14:20 <a href="mailto:dhirajpraj@gmail.com">dhirajpraj@gmail.com</a> <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am using nginx 1.8.0 as a load balancer.<br>
<br>
Below is the configuration snippet:<br>
<br>
upstream appservers {<br>
least_conn;<br>
server <a href="http://10.21.3.123:8083" rel="noreferrer" target="_blank">10.21.3.123:8083</a>;<br>
server <a href="http://10.21.3.125:8083" rel="noreferrer" target="_blank">10.21.3.125:8083</a>;<br>
}<br>
<br>
server {<br>
listen 443 ssl spdy backlog=2048;<br>
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";<br>
<br>
add_header Alternate-Protocol 443:npn-spdy/3;<br>
<br>
ssl_certificate<br>
/etc/nginx/<a href="http://click.rummycircle.com/click.rummycircle.com.crt" rel="noreferrer" target="_blank">click.rummycircle.com/click.rummycircle.com.crt</a>;<br>
ssl_certificate_key<br>
/etc/nginx/<a href="http://click.rummycircle.com/click.rummycircle.com.key" rel="noreferrer" target="_blank">click.rummycircle.com/click.rummycircle.com.key</a>;<br>
<br>
ssl_ciphers<br>
ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:!MD5:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM;<br>
ssl_prefer_server_ciphers on;<br>
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>
<br>
location / {<br>
# log_format postdata '$remote_addr - $remote_user<br>
[$time_local] '<br>
# '"$request" $status $bytes_sent '<br>
# '"$http_referer" "$http_user_agent"<br>
"$request_body"';<br>
# access_log /home/deploy/nginx_logs/new_access.log<br>
postdata;<br>
proxy_set_header Host $http_host;<br>
proxy_set_header X-Real-IP $remote_addr;<br>
proxy_set_header X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
proxy_pass <a href="http://appservers" rel="noreferrer" target="_blank">http://appservers</a>;<br>
}<br>
}<br>
<br>
Nginx is balancing the load between our 2 servers: 10.21.3.123 and<br>
10.21.3.125. I want to remove one server from the load balancer at runtime<br>
without any packet loss. So I removed i by changing the configuration like<br>
below:<br>
upstream appservers {<br>
least_conn;<br>
server <a href="http://10.21.3.123:8083" rel="noreferrer" target="_blank">10.21.3.123:8083</a>;<br>
}<br>
<br>
Then I reloaded nginx: sudo service nginx reload<br>
I checked with nginx -t that Nginx successfully reloaded.<br>
However, it still continues to send new requests to the removed server.<br>
Please assist.<br>
<br>
<br>
My OS details:<br>
uname -a<br>
Linux an-lb-01 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC<br>
2015 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,260999,260999#msg-260999" rel="noreferrer" target="_blank">http://forum.nginx.org/read.php?2,260999,260999#msg-260999</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>