Tag: hystrix

Docker尤里卡UnknownHostException

即时通讯试图做dockerized springboot应用程序的微服务架构。 对于内部通信,我想使用Eureka + FeignClient。 与尤里卡的注册工作正常(afaik): <application> <name>CAREER-SERVICE</name> <instance> <instanceId>4b62546fdc9b:career-service:7000</instanceId> <hostName>172.18.0.15</hostName> <app>CAREER-SERVICE</app> <ipAddr>172.18.0.15</ipAddr> <status>UP</status> <overriddenstatus>UNKNOWN</overriddenstatus> <port enabled="true">7000</port> <securePort enabled="false">443</securePort> <countryId>1</countryId> <dataCenterInfo class="com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo"> <name>MyOwn</name> </dataCenterInfo> <leaseInfo> <renewalIntervalInSecs>30</renewalIntervalInSecs> <durationInSecs>90</durationInSecs> <registrationTimestamp>1497345551521</registrationTimestamp> <lastRenewalTimestamp>1497347501260</lastRenewalTimestamp> <evictionTimestamp>0</evictionTimestamp> <serviceUpTimestamp>1497345550971</serviceUpTimestamp> </leaseInfo> <metadata class="java.util.Collections$EmptyMap"/> <homePageUrl>http://172.18.0.15:7000/</homePageUrl> <statusPageUrl>http://172.18.0.15:7000/info</statusPageUrl> <healthCheckUrl>http://172.18.0.15:7000/health</healthCheckUrl> <vipAddress>career-service</vipAddress> <secureVipAddress>career-service</secureVipAddress> <isCoordinatingDiscoveryServer>false</isCoordinatingDiscoveryServer> <lastUpdatedTimestamp>1497345551521</lastUpdatedTimestamp> <lastDirtyTimestamp>1497345550555</lastDirtyTimestamp> <actionType>ADDED</actionType> </instance> </application> <application> <name>AUTH-SERVICE</name> <instance> <instanceId>5ecc30b0fcd1:auth-service:5000</instanceId> <hostName>172.18.0.11</hostName> <app>AUTH-SERVICE</app> <ipAddr>172.18.0.11</ipAddr> <status>UP</status> <overriddenstatus>UNKNOWN</overriddenstatus> <port […]

为什么我应该使用ribbon / hystrix / eureka而不是docker + haproxy进行微服务?

我试图find使用Ribbon + Hysterix + Eureka进行负载均衡/故障回复和服务发现的原因? 为什么我不能简单地使用docker-compose和https://github.com/docker/dockercloud-haproxy的帮助部署我的微服务,难道我没有得到所有的优势吗? 事实上,使用docker-compose,dockercloud-haproxy – 我甚至不需要服务发现,对吧? 如果我有Zuul代理服务器,我不能注册一个固定的URL为我的服务指向这个docker容器运行happroxy? 谢谢。

docker的spring云hystrix涡轮amqp连接拒绝

我已经build立了基于Spring Cloud和Netflix OSS套件的演示应用程序。 当我运行所有的模块时,应用程序在我的本地开发环境以及Pivotal Web服务中运行得非常好。 我遇到的问题是当我configuration模块在docker中运行。 当我启动一个依赖于Hystrix / Turbine的RabbitMQ的应用程序时,我得到了AMQP连接exception。 2015-07-30 15:32:15.567 WARN 1 — [askExecutor-262] osarlSimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused 我在Docker中使用以下configuration启动rabbitmq: docker run -d –hostname rabbitmq –name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management 我可以在浏览器中无需访问pipe理端口。 当我启动Docker中的一个依赖项目时,我使用docker链接参数指定rabbitmq: –link rabbitmq:rabbitmq 有什么想法在这里失踪?