如何把一类请求绑定在特定worker中处理?

29 views
Skip to first unread message

安东谢

unread,
Dec 23, 2022, 3:02:14 PM12/23/22
to openresty
如何把一类请求绑定在特定worker中处理?比如/api/getid 的请求只由最后一个worker进程处理

Attenuation

unread,
Dec 24, 2022, 6:00:42 AM12/24/22
to open...@googlegroups.com
你好,在Nginx这个架构下reuseport是做不到的。TCP 在accept的时候并不知道你的HTTP Header

'安东谢' via openresty <open...@googlegroups.com> 于2022年12月24日周六 04:02写道:
如何把一类请求绑定在特定worker中处理?比如/api/getid 的请求只由最后一个worker进程处理

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
---
您收到此邮件是因为您订阅了Google网上论坛上的“openresty”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到openresty+...@googlegroups.com
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/openresty/69108c11-d098-4396-af97-50276a65db24n%40googlegroups.com


--
GPG public key: 4A6D297E6F74638E4D5F8E99152AC7B5F7608B26
Thanks,
Jun Ouyang
Reply all
Reply to author
Forward
0 new messages