ngx_http_dyups_module icon indicating copy to clipboard operation
ngx_http_dyups_module copied to clipboard

upstream已经更新,但是好像没生效

Open yangminglis opened this issue 7 years ago • 2 comments

本来upstream A下有2台server,现在去掉其中一台,通过/detail接口看到upstream已经更新为只剩一台了,但是在发起请求时,去掉的那一台居然还能收到请求

yangminglis avatar Nov 16 '18 03:11 yangminglis

可能你的配置是

upstream aaa {
   server 127.0.0.1:8888;
}

proxy_pass http://aaa ;

而不是

upstream aaa {
   server 127.0.0.1:8888;
}
set $ups aaa ;
proxy_pass http://$ups;

zengjinji avatar Apr 28 '19 03:04 zengjinji

请问这两者有什么区别?

yanjia92 avatar Aug 06 '21 08:08 yanjia92