gpt4 book ai didi

spring-boot - Hystrix 和 Turbine 不适用于 Spring boot 2 和 Spring cloud Finchley.M8

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

我用 Spring boot 2 和最新版本的 Spring Cloud 尝试了 turbine + hystrix 仪表板,似乎存在一些问题并且 turbine 无法从响应式(Reactive)服务获取流。我只是将简单的微服务上传到github

https://github.com/armdev/reactive-spring-cloud

像这样的异常:

com.netflix.turbine.monitor.instance.InstanceMonitor$MisconfiguredHostException: [{"timestamp":"2018-03-08T17:22:05.809+0000","status":404,"error":"Not Found","message":"No message available","path":"/hystrix.stream"}]
at com.netflix.turbine.monitor.instance.InstanceMonitor.init(InstanceMonitor.java:318) ~[turbine-core-1.0.0.jar:na]
at com.netflix.turbine.monitor.instance.InstanceMonitor.access$100(InstanceMonitor.java:103) ~[turbine-core-1.0.0.jar:na]
at com.netflix.turbine.monitor.instance.InstanceMonitor$2.call(InstanceMonitor.java:235) [turbine-core-1.0.0.jar:na]
at com.netflix.turbine.monitor.instance.InstanceMonitor$2.call(InstanceMonitor.java:229) [turbine-core-1.0.0.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]

或破损的管道。

有人用 Spring webflux 尝试过完整的 spring 云堆栈吗?有什么建议吗?

最佳答案

幸运的是通过配置解决了问题,Spring boot和Spring cloud没有任何bug。非常感谢 Josh Long!在这里您可以找到带有配置的完整项目。 https://github.com/armdev/reactive-spring-cloud/blob/master/google/src/main/resources/application.properties

server.port=8082
spring.application.name=turbine
management.endpoint.health.enabled=true
management.endpoints.jmx.exposure.include=*
management.endpoints.web.exposure.include=*
management.endpoints.web.base-path=/actuator
management.endpoints.web.cors.allowed-origins=true
management.endpoint.health.show-details=always
eureka.client.serviceUrl.defaultZone=${EUREKA_URI:http://localhost:8761/eureka}
eureka.instance.lease-expiration-duration-in-seconds=5
eureka.instance.lease-renewal-interval-in-seconds=5
turbine.aggregator.cluster-config=default
turbine.app-config=google
turbine.cluster-name-expression= new String("default")
turbine.combine-host-port=true
turbine.instanceUrlSuffix.default: actuator/hystrix.stream

关于spring-boot - Hystrix 和 Turbine 不适用于 Spring boot 2 和 Spring cloud Finchley.M8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49176544/

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