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

update upstream的过程中,是否流量绝对无损? #101

Open
lpdb2001 opened this issue Oct 30, 2018 · 3 comments
Open

update upstream的过程中,是否流量绝对无损? #101

lpdb2001 opened this issue Oct 30, 2018 · 3 comments

Comments

@lpdb2001
Copy link

我nginx reload操作时,对流量是无损失的。
咱们的动态dyups_module是原理上是否能保证,在进行update upstream时是绝对无损的?

@iandyh
Copy link
Contributor

iandyh commented Oct 30, 2018

是的,可以保证更新 upstream 时无流量损失。

@lpdb2001
Copy link
Author

lpdb2001 commented Nov 1, 2018

感谢,能不能描述一下原理?

@chobits
Copy link
Collaborator

chobits commented May 6, 2019

dyups模块可以保证 请求使用 老的upstream状态 和 新的upstream状态其一,可以保证不会查不到upstream。所以只要新老upstream描述的后端列表无异常,即不会出现损伤。

  • 使用老的upstream状态:更新后又一定延时才能把所有新的upstream同步到所有worker,所以部分worker的会出现使用老的upstream状态

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