apache 返回 200ok 用于使用 不正确的端点 '/healthh' 用于应用程序的 livenesscheck。
curl -ik --cert <path-to-certs> https://<app-host-name>/healthhh --resolve <app-host-name>:443:<IP>
HTTP/1.1 200 OK
Date: Thu, 09 Mar 2023 04:18:07 GMT
Server: Apache/2.4.53 (Unix) OpenSSL/3.0.7+akamai
Transfer-Encoding: chunked
HTTP/1.1 b'404 Not Found'Server: gunicorn
Date: Thu, 09 Mar 2023 04:18:07 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
26
Apache Airflow is not at this location
0
在这种情况下,Airflow 的 Web 服务器似乎返回了格式错误的 HTTP 响应状态行: HTTP/1.1 b'404 未找到'
当使用正确的端点“/airflow/health”时,它工作正常。
curl -ik --cert <path-to-certs> https://<app-host-name>/airflow/health --resolve <app-host-name>:443:<IP>
HTTP/1.1 200 OK
Date: Thu, 09 Mar 2023 04:26:13 GMT
Server: gunicorn
Content-Type: application/json
Content-Length: 189
X-Robots-Tag: noindex, nofollow
{
"metadatabase": {
"status": "healthy"
},
"scheduler": {
"status": "unhealthy",
"latest_scheduler_heartbeat": "2023-03-
09T04:22:26.584429+00:00"
}
}
apache 在代理来自应用层的无效响应时返回 200。预计 apache 会这样做吗? 代理配置中是否只缺少一些配置值? 这实际上是上游 apache 本身的错误吗?