问题描述
我有一个 nodejs apollo 服务器(graphql),几乎所有时间状态都很严重,但服务器运行良好。此外,没有关于它的原因信息。
我已经检查了所有日志,但找不到原因,有人知道可能是什么吗?
访问日志
IP - - [22/Dec/2020:09:08:53 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
IP - - [22/Dec/2020:09:08:53 +0000] "POST /api/graphql HTTP/1.1" 200 163 "-" "ELB-HealthChecker/2.0" "172.31.37.93,IP"
IP - - [22/Dec/2020:09:08:53 +0000] "POST /api/graphql HTTP/1.1" 200 187 "-" "ELB-HealthChecker/2.0" "172.31.37.93,IP"
IP - - [22/Dec/2020:09:08:53 +0000] "POST /api/graphql HTTP/1.1" 200 163 "-" "ELB-HealthChecker/2.0" "172.31.37.93,IP"
IP - - [22/Dec/2020:09:08:54 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
IP - - [22/Dec/2020:09:08:54 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
IP - - [22/Dec/2020:09:08:54 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
IP - - [22/Dec/2020:09:08:54 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
IP - - [22/Dec/2020:09:08:54 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
IP - - [22/Dec/2020:09:08:54 +0000] "GET /api/subscriptions HTTP/1.1" 101 27 "-" "-" "IP"
解决方法
可能是一个链接服务,例如亚马逊 SNS,其死信队列中有消息。或者部署失败。或者其他什么..你是否已经尝试过重建应用程序? AWS EB 确实有时难以调试。