gpt4 book ai didi

google-compute-engine - Compute Engine HTTP负载平衡502错误

转载 作者:行者123 更新时间:2023-12-03 12:19:15 25 4
gpt4 key购买 nike

仅某些IP地址的http负载均衡器存在严重问题。

我在这里还看到了其他一些帖子。我们确保防火墙正常,甚至删除并重新创建了转发规则。自IP更改以来,这非常令人讨厌。

仍然没有喜悦。问题仅影响某些IP地址-如果我将相同的数据发布到其中一台服务器的IP上,则没有问题。

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>

编辑

我们使用cloudflare-通常实际上已对此主机禁用此功能,但我刚刚重新启用了它,现在再次接受了流量。大概是因为流量来自CF ip。

最佳答案

502错误是“网关错误”响应。发生502错误时,您是否已checked the health check status of your instances

您还没有提到whether you're running backends in more than one region。您在一个区域中的后端可能一次都被标记为不正常,这会导致您的失败。

您的后端服务是using the default HTTP health check, or have you customized it吗?如果是前者,则可以考虑为后端定义更宽松的运行状况检查(尽管这可能掩盖了实际的应用程序服务器故障)。默认设置是每5秒检查一次“/”上的后端,超时时间为5秒,并且连续两次失败或成功都需要更改状态。

关于google-compute-engine - Compute Engine HTTP负载平衡502错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32552772/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com