當前位置:
首頁 >
nginx假死导致的问题回顾
發布時間:2025/4/5
38
豆豆
生活随笔
收集整理的這篇文章主要介紹了
nginx假死导致的问题回顾
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
背景:
?網絡大致拓撲型
?
?
定位到一臺Nginx節點于凌晨Timewait異常,等到6K。
進程異常,ngx_http_realtime_request模塊錯誤
錯誤日志:
2017/02/24 00:01:02 [alert] 25911#0: worker process 24588 exited on signal 11 2017/02/24 00:01:02 [alert] 25911#0: shared memory zone "http_realtime_request_zone" was locked by 24588 2017/02/24 00:01:02 [alert] 25911#0: worker process 24589 exited on signal 11 2017/02/24 00:01:02 [alert] 25911#0: shared memory zone "http_realtime_request_zone" was locked by 24589解決過程:
Nginx每天凌晨定時切割日志reload后,進程異常,但端口存活,致使F5仍舊分發請求,以及監控無法異常告警。
1. 從github上查找項目https://github.com/magicbear/ngx_realtime_request_module
發現最近更新是4年前,項目不活躍。
2.網上有報過這個問題:http://code.taobao.org/pipermail/tengine-cn/2014-June/001406.html
>>>> 2014-06-30 12:17 GMT+08:00 趙海軍 <zhaohaijun在cmcm.com>: >>>>> 那這個問題應該是ngx_http_realtime_request導致的,請問有什么解決辦法嗎? >>>>>>> 這個看起來像是模塊實現時的問題。需要這個模塊的開發者來幫助排查,可以嘗試再他的github上提個issue。 >> BTW,我粗略看了下他的模塊,這個問題可能和ngx_http_realtime_request_init_zone()實現有關系。 >> *這里*ngx_http_realtime_request_init_zone()實現上是不太完善的 >>3. 關閉ngx_http_realtime_request模塊,重新reload
4.增加timewait 監控
5. 用elk監控nginx的流量,替換ngx_http_realtime_request功能
?
轉載于:https://www.cnblogs.com/davidwang456/p/6474168.html
總結
以上是生活随笔為你收集整理的nginx假死导致的问题回顾的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: lvs为何不能完全替代DNS轮询--转
- 下一篇: 一张图了解javaJwt