【发布时间】:2020-01-08 13:34:42
【问题描述】:
我正在使用spring-boot-admin 库。我在 heroku 中部署了一个 Spring Boot 管理客户端。 客户端能够将自己注册到 admin-server,并将 managementUrl、healthUrl 和 serviceUrl 发送回服务器。
问题是管理客户端的执行器端点在 heroku 中无法访问。管理服务器抱怨
Couldn't retrieve status for Instance(id=156385483, version=0, registration=Registration(name=spring-boot-application, managementUrl=http://example.heroku.com:23349/actuator, healthUrl=http://example.com:23349/actuator/health, serviceUrl=http://example,heroku.com:23349/, source=http-api), registered=true, statusInfo=StatusInfo(status=UNKNOWN, details={}), statusTimestamp=2020-01-08T13:13:32.710Z, info=Info(values={}), endpoints=Endpoints(endpoints={health=Endpoint(id=health, url=http://example.heroku.com:23349/actuator/health)}), buildVersion=null, tags=Tags(values={}))
在本地机器上运行时,管理服务器和客户端工作正常。是否可能是 heroku 的端口问题,无法访问并拒绝服务器进行的调用?
【问题讨论】:
标签: heroku port spring-boot-admin