Google Cloud Platform-后端未通过运行状况检查而收到502错误

阿卡什·夏尔马

我一直在按照本指南在Google Cloud计算引擎上部署Pega 7.4。一切都进行得很顺利,但是在负载均衡器运行状况检查中,服务仍然不正常。

在此处输入图片说明

当访问外部IP时,将返回502,并且在尝试对GCP进行故障排除时,我们告诉我们“确保您的后端正常并且支持HTTP / 2协议”。在指南中,该命令如下:

gcloud compute backend-services create pega-app \
    --health-checks=pega-health \
    --port-name=pega-web \
    --session-affinity=GENERATED_COOKIE \
    --protocol=HTTP --global

该协议是HTTP,但是与HTTP / 2相同吗?

除了检查防火墙设置是否允许运行状况检查器和负载平衡器通过之外,还有什么其他问题?

gcloud compute firewall-rules create pega-internal \
    --description="Pega node to node communication requirements" \
    --action=ALLOW \
    --rules=tcp:9300-9399,tcp:5701-5800 \
    --source-tags=pega-app \
    --target-tags=pega-app
gcloud compute firewall-rules create pega-web-external \
    --description="Pega external web ports" \
    --action=ALLOW \
    --rules=tcp:8080,tcp:8443 \
    --source-ranges=130.211.0.0/22,35.191.0.0/16 \
    --target-tags=pega-app

编辑:因此实例组在8080上有一个命名端口

gcloud compute instance-groups managed set-named-ports pega-app \
    --named-ports=pega-web:8080 \
    --region=${REGION}

和健康检查配置:

gcloud compute health-checks create http pega-health \
    --request-path=/prweb/PRRestService/monitor/pingservice/ping \
    --port=8080

我在pega-app上检查了VM实例日志,并在尝试打ping服务时得到404。 在此处输入图片说明

阿卡什·夏尔马

我的问题是我使用了一个使用静态IP地址的配置,而不应用这样的域名系统记录:gcloud计算地址创建了pega-app --global我跳过了这一步,因此每次实例启动时它都会生成临时IP地址向上。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Google Cloud Load Balancer-502-非托管实例组运行状况检查失败

通过 Cloud Functions 创建 Google Cloud Platform 预算

Google Cloud HTTP负载均衡器运行状况检查发送了太多请求?

Google Cloud Function: FunctionsError: OperationError: code=13, message=由于运行状况检查失败,函数部署失败

Google Cloud Platform 上的 Docker 映像运行错误

Google Cloud Messaging VS Google Cloud Platform

如何增加Google Cloud Platform中的后端服务配额?

Google Cloud Platform(GCP)入口不正常的后端

Google Cloud Platform:如何重命名Google Cloud Platform项目?

Google Cloud Platform文件位置

Google Cloud Platform个人帐单

Google Cloud Platform数据显示

Google Cloud Platform修复SSH

kubernetes健康检查作业进入Google Cloud Platform

在 MiniKF (Google Cloud Platform) 中运行 XGBoost 示例

在Google Cloud Platform上运行一个Docker容器

哪种Google Cloud Platform服务最适合运行Tensorflow?

在哪里可以在 Google Cloud Platform 上运行连续作业?

尝试在 Google Cloud Platform 实例上运行 VMWare Workstation?

在 Google Cloud Platform (GCP) 中传播错误消息

Google Cloud Platform无法完成作业-权限错误?

在ExpressJS中使用Google Cloud Platform的错误报告

Spring Cloud Stream和RabbitMQ运行状况检查

Google Cloud Platform应用程序部署导致502服务器错误

用于通过REST API在Google Cloud Platform中的Cloud Armor中更新规则的Python脚本

是否可以将“ Google Cloud Endpoints”用于未托管在“ Google Platform”上的后端API?

Google Cloud Platform和Google Cloud Firestore之间的区别?

无法删除Google Cloud Platform项目

更改Google Cloud Platform上的GPU配额