upsync_clear_all_events
Closed this issue · 3 comments
aarono0 commented
配置:
os:CentOS Linux release 7.6.1810 (Core)
openresty: 1.15.8.2
openssl: 1.1.1d
gcc: 4.8.5
branch:nginx-upsync-module master 获取consul数据
nginx_upstream_check_module
nginx reload报错:
2020/04/22 22:01:32 [error] 5305#5305: [WARN]:upsync_clear_all_events: on 5305
2020/04/22 22:01:32 [error] 5304#5304: [WARN]:upsync_clear_all_events: on 5304
2020/04/22 22:01:32 [error] 5308#5308: [WARN]:upsync_clear_all_events: on 5308
2020/04/22 22:01:32 [error] 15761#15761: *2125320757 no live upstreams while connecting to upstream
2020/04/22 22:01:32 [error] 15761#15761: *2125320759 no live upstreams while connecting to upstream
实际业务场景中reload的时候,有用户请求会出现502。
@xiaokai-wang 辛苦有时间帮看下。
aarono0 commented
相关报错详细信息:
no live upstreams while connecting to upstream, client: 10.0.0.1, server: x.x.com, request: "POST /audit/censor_add_record.php HTTP/1.1", upstream: "http://admin/audit/censor_record.php"
正常情况下nginx reload它会匹配到这个upstream后端的IP,但是reload的时候有正在提交的请求那一瞬间他没匹配到IP,直接匹配到了upstream名称。
aarono0 commented
该问题已解决。
axinbabahelloworld commented
@aarono0 怎么解决的能分享下吗?