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

dyups遇到reload的操作 #102

Open
FengXingYuXin opened this issue Nov 8, 2018 · 1 comment
Open

dyups遇到reload的操作 #102

FengXingYuXin opened this issue Nov 8, 2018 · 1 comment

Comments

@FengXingYuXin
Copy link

Nginx reload过程中:[1]master进程从磁盘加载配置文件,[2]fork新的worker进程,[3]给旧worker发管道消息或信号进行关闭。如果在[1]和[3]之间有dyups请求request1更新内存,那么一定概率是被旧worker处理。
而Dyups模块对于共享内存中的消息队列&进程状态在worker init时处理方式是:重新初始化。
这就会导致新worker无法及时同步到request1的变更,最近公司生产环境遇到了这个问题。关于这块的设计,作者当时是如何思考的呢?是否有改善策略? 还请指教。

@sudoconf
Copy link

sudoconf commented Jul 6, 2019

可以拉内存数据比对进行多次更新吧

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

2 participants