【问题标题】:Cloud Foundry Turbine Stream Unable to connect to Command Metric StreamCloud Foundry Turbine Stream 无法连接到 Command Metric Stream
【发布时间】:2016-03-20 07:09:39
【问题描述】:

我已经设置了一个涡轮应用程序,当我在本地运行它时一切都运行良好。

应用程序出现在 Cloud Foundry 中,但是,Hystrix Dashboard 似乎无法连接到:8989/turbine.stream

无法连接到 Command Metric Stream。

在 Cloud Foundry 中,我是否需要为 /turbine.stream 公开服务?

所有应用都连接到rabbitmq。

Turbine 应用在 yml 中配置:

server:
  port: ${PORT:8990}

turbine:
  stream:
    port: 8989

这是应用程序

@SpringBootApplication
@EnableTurbineStream
@EnableDiscoveryClient
public class TurbineApplication {

    public static void main( String[] args ) {

        new SpringApplicationBuilder( TurbineApplication.class ).run( args );

    }

}

【问题讨论】:

    标签: spring-boot cloud-foundry spring-cloud turbine


    【解决方案1】:

    这就是解决方案。我的配置错误。

    server:
      port: ${PORT:8989}
    
    management:
      port: 8990
    
    ---
    spring:
      profiles: cloud
    
    management:
      port: -1
    

    看来我需要关闭管理端口,将其设置为 -1,以便只有 Rx Netty 服务器将在 8080 上启动。

    【讨论】:

      猜你喜欢
      • 2019-02-07
      • 2018-09-22
      • 2019-06-15
      • 2020-05-01
      • 2020-08-22
      • 1970-01-01
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      相关资源
      最近更新 更多