-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tengine 2.3.3 生产环境频繁coredump #1609
Comments
upstream conf:
|
还有一种coredump
|
看起来产生段错误函数为ngx_http_upstream_get_round_robin_peer。 完整的回源逻辑为:
结论: |
https://cloud.tencent.com/developer/article/1778734 |
没有任何patch 操作, 就是下载官方release页面里的 tengine2.3.3 和 nginx-upsync-module-2.1.3 编译运行, 打包脚本如下:
另外看 https://github.com/alibaba/tengine/blob/master/src/http/ngx_http_upstream_round_robin.c#L642 是不是健壮性可以提升优化 至少做个判断, 空了也不至于coredump, continue 跳过peer就行啊 |
有可能优化下么? |
1 similar comment
有可能优化下么? |
关闭T_NGX_HTTP_UPSTREAM_RANDOM 试试 |
@DavidLeeUX 这种么
} |
Ⅰ. Issue Description
tengine 2.3.3 生产环境频繁coredump
Ⅱ. Describe what happened
tengine 2.3.3 生产环境频繁coredump
Ⅲ. Describe what you expected to happen
正常运行
Ⅳ. How to reproduce it (as minimally and precisely as possible)
生产正常运行, 每天产生几十过 coredump文件, 看了都是同一个位置导致的
分析coredump文件如下:
最近新引入和启用 了 nginx-upsync-module-2.1.3 ( https://github.com/weibocom/nginx-upsync-module )
他们这边也提了issue: weibocom/nginx-upsync-module#300
Ⅵ. Environment:
sbin/nginx -V
):uname -a
): CentOS Linux release 7.7.1908 (Core)The text was updated successfully, but these errors were encountered: