PCF中的springboot应用程序的运行状况检查属性

时间:2020-09-02 08:20:21

标签: spring-boot spring-boot-actuator pivotal-cloud-foundry pcf pivotal-web-services

我已经在我的Spring Boot应用程序中(使用执行器)配置了以下运行状况检查属性,并在使用以下端点进行本地测试时返回“ UP”

server:
  servlet:
    context-path: /account/v1
  port: 8443
  
management:
  endpoints:
    web:
      path-mapping:
        health: /health

使用“ http:// localhost:8443 / account / v1 / actuator / health在本地检查并返回 {“状态”:“ UP”}“

在PCF中,我将运行状况检查类型更新为“ http” ,将端点更新为“ /执行器/运行状况” 。 当我推送我的应用程序时,出现以下错误

2020-09-02T12:43:15.92+0530 [HEALTH/0] ERR Failed to make HTTP request to '/actuator/health' on port 8080: connection refused
   2020-09-02T12:43:15.92+0530 [CELL/0] ERR Failed after 1m0.632s: readiness health check never passed.

请对此提供帮助。(我的端口或端点是否错误)

0 个答案:

没有答案