netflix-eureka

Eureka services giving Request execution error?

给你一囗甜甜゛ 提交于 2020-01-25 03:05:08
问题 Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/} is giving when I am running in docker windows but It is registering with eureka server when I am running in spring boot app in STS. for server i run in docker docker run -p 8761:8080 serverimagename for services I run in docker docker run -p 8762:8080 servicesimagename server app.properties DOCKER_HOST=tcp://127.0.0.1:2375 eureka.instance.hostname=localhost eureka.instance.secure-port-enabled= true

spring boot 2 + feign + eureka client wont resolve service-name to URL

时间秒杀一切 提交于 2020-01-24 17:03:37
问题 I am trying spring-boot (2.0.5) with spring-cloud (Finchley.SR1) and trying to setup communication between two services using Eureka as discovery server and Feign/Ribbon as clients. The setup is quite straightforward (although a bit muddied by the various things and other answers I tried): Eureka's application.yml spring: application: name: eureka-service server: port: 8761 eureka: instance: hostname: localhost preferIpAddress: true client: registerWithEureka: false fetchRegistry: false

Hazelcast cluster not available on Eureka

三世轮回 提交于 2020-01-16 09:08:11
问题 I had a problem configuring simple Hazelcast cluster for existing Eureka client. My application is simple Java SpringBoot application with Eureka discovery enabled, it is properly available for Eureka, however Hazelcast cluster is not. This is my configuration: hazelcast.xml <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config http://www.hazelcast.com/schema/config/hazelcast-config-3.9.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001

Spring eureka dashboard returns XML on wildfly

試著忘記壹切 提交于 2020-01-14 13:38:49
问题 I am trying to deploy my eureka-service at wildfly, but when i try to access the dashboard i get the following xml as response: <com.netflix.eureka.util.StatusInfo> <generalStats> <environment>test</environment> <num-of-cpus>4</num-of-cpus> <total-avail-memory>3525mb</total-avail-memory> <current-memory-usage>736mb (20%)</current-memory-usage> <server-uptime>00:01</server-uptime> </generalStats> <applicationStats> <registered-replicas>http://localhost:8761/eureka/</registered-replicas>

Spring Cloud service Look up error: Load balancer does not have available server for client

本小妞迷上赌 提交于 2020-01-13 14:43:32
问题 I've been playing with a Spring Cloud app consisting of a config server, a discovery server (Eureka) and a Feign client with Ribbon (internally used by Feign). I've 2 services, a movie-service and a daily-update-service . The intent is to provide a daily update of popular movies, news and weather in one place. Problem I'm having is that the movie-service Feign client is not able to find it from daily-update-service . It errors out with the following: Caused by: java.lang.RuntimeException: com

Spring Cloud service Look up error: Load balancer does not have available server for client

情到浓时终转凉″ 提交于 2020-01-13 14:41:58
问题 I've been playing with a Spring Cloud app consisting of a config server, a discovery server (Eureka) and a Feign client with Ribbon (internally used by Feign). I've 2 services, a movie-service and a daily-update-service . The intent is to provide a daily update of popular movies, news and weather in one place. Problem I'm having is that the movie-service Feign client is not able to find it from daily-update-service . It errors out with the following: Caused by: java.lang.RuntimeException: com

Unable to access Jhipster generated micro services on jhipster-registry in Aws Elastic Beanstalk

倾然丶 夕夏残阳落幕 提交于 2020-01-07 05:34:11
问题 I deployed my gateway, microservices and jhipster-registry applications on Aws Elastic Beanstalk. Applications are registered successfully on the registry. I am able to access the UI as well however when I try to access the api's it throws the below error: I can see the microservices app in the gateway as well. When I try to access the applications by clicking on the links inside registry I get server DNS address could not be found . Any idea what I am doing wrong here? Everything works fine

Using Hystrix Stream in Zuul with Eureka First to find Config server

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 20:09:50
问题 I'm using spring cloud Brixton.M4 with spring boot 1.3.1 I have zuul server with <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-hystrix-stream</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit</artifactId> </dependency> and i'm using Eureka first to find Config-Server so bootstrap looks like spring: profiles: dev cloud: config: fail-fast: true discovery: enabled: true

Spring Cloud Netflix | Eureka not registering when deployed on ECS

北战南征 提交于 2020-01-06 08:47:10
问题 I am trying to deploy Spring Netflix Eureka and related microservice application using ECS and Cloudformation. Eureka is not able to register the related microservices because the docker images are not able to link on hostname. Please suggest what should be the best solution to handle this. 回答1: You should use EC2 instance's host ip instead of docker container host's. In your microservices (if those are spring boot applications), put this code: @Bean @Profile("docker") public