Category : netflix-eureka

I am running spring boot services using docker-compose. project link Eureka server Two services are registered in one instance instead of each one separated instances. @SpringBootApplication @EnableEurekaClient public class OrganizationApplication { @Bean @LoadBalanced public RestTemplate getRestTemplate(){ RestTemplate restTemplate = new RestTemplate(); return restTemplate; } public static void main(String[] args) { SpringApplication.run(OrganizationApplication.class, args); }} application.yml eureka: ..

Read more

So im trying to run my application using docker containers. Everything seems to be working fine but when i try to connect the eureka client to the eureka server i get this: Request execution error. endpoint=DefaultEndpoint{ serviceUrl=’http://localhost:8761/eureka/}, exception=java.net.ConnectException: Connection refused (Connection refused) stacktrace=com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused (Connection refused) All containers are set to a local ..

Read more

I am trying to run microservices app with Eureka discovery and Zuul using docker-compose. Everything runs smoothly when I am running ./gradle bootRun on Discovery > Book-Service and Order miscroservices > Zuul I can access the following: localhost:8081/book/1 localhost:8082/order/1 localhost/book/1 localhost/order/1 But when I run using docker-compose up, I can only access: localhost:8081/book/1 localhost:8082/order/1 localhost/book/1 ..

Read more

So I am experimenting with docker and microservices and am trying to setup three services: zuul-service, eureka-server and register-service. (register-service is a microservice that registers parking lot clients to a postgresSQL database) When I run these three services on my IDE, they work flawlessly. Both zuul-service and register-service register on the eureka-server. I can see ..

Read more

I have a question regarding how Load balancing works when you have a single node Docker Swarm combined with Spring Eureka using Spring Cloud gateway. I have successfully configured a non Eureka swarm and can see Swarm load balancing between replicas for a service: Cloud Gateway route config .route(r -> r.path("/api/**") .uri("http://my-service:8081") .id("my-service")) If I ..

Read more

Guys I have the following service-XXXX (eureka server) It has @EnableEurekaServer in main class applciation.yml eureka: instance: localhost client: register-with-eureka: false fetch-registry: false serviceUrl: defaultZone: http://localhost:8761 pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency> RAXXXX (eureka -client) it has @EnableDiscoveryClient although I understand this is optional application.yml eureka: client: register-with-eureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8761/eureka/ pom.xml <dependency> ..

Read more

I have microservices(eureka-clients) in linux server running in docker containers.They have registered by service-name on Eureka Server.I have another collector-microservice which calls those microservices.If collector-microservice and other microservices running on the same server docker engine everything is okey.But if collector-service running on my local computer or on other server docker they cannot communicate by eureka ..

Read more

I need to tell a Eureka client running in Docker to use the host’s IP to register its service. I used the below, but it doesn’t work. It’s information from Eureka Gateway service is running without docker container and it has IP address instead of docker container id. I have next configuration for Eureka clients ..

Read more