Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

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

Open
yangminglis opened this issue Nov 16, 2018 · 2 comments
Open

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

yangminglis opened this issue Nov 16, 2018 · 2 comments

Comments

@yangminglis
Copy link

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

@zengjinji
Copy link

可能你的配置是

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;

@yanjia92
Copy link

yanjia92 commented Aug 6, 2021

请问这两者有什么区别?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants