Questions tagged [netflix-eureka]

AWS Service registry for resilient mid-tier load balancing and failover.

https://github.com/Netflix/eureka/

1623 questions
0
votes
1 answer

java.lang.NullPointerException on DiscoveryClient when calling the method from another class

When I am calling the method itself through the browser it's working and I am getting the expected JSON. So the method is working and the requested service is registered. @RequestMapping("/getArticle/{articleId}") public String…
elp
  • 840
  • 3
  • 12
  • 36
0
votes
1 answer

Can Eureka Clients discover the Server without an explicit URL?

In a sample Spring Boot project I've setup, I point my Eureka clients to my Eureka server with a URL like so: eureka.serviceUrl.default=http://localhost:8761/eureka/v2/ I'm worried about what happens if the Eureka Server dies. As a remedy, is there…
urig
  • 16,016
  • 26
  • 115
  • 184
0
votes
1 answer

Eureka, ZUUL, Docker Compose on bridge network java.net.ConnectException: Connection refused

I'm running a Zuul service and Eureka service on separate docker containers with minimalistic configurations (both are spring boot projects). Eureka: docker-compose.xml: version: '2' services: app: build: context: ./ image: eureka …
0
votes
1 answer

Eureka port in application.yml ignored

I'm following this article (http://www.baeldung.com/spring-cloud-netflix-eureka) to set up eureka, my application.yml looks like this server: port: 8761 eureka: client: registerWithEureka: false fetchRegistry: false …
fquirogam
  • 19
  • 7
0
votes
1 answer

Combining SpringBoot, Zuul and Eureka but bind Services to Localhost

I have set up Zuul for routing and Eureka for service discovery, which works fine. Before setting up Eureka, I used server.address=127.0.0.1 to bind my actual service to localhost so that they could only be accessed from within the Api gateway. When…
pixelstuermer
  • 199
  • 3
  • 23
0
votes
1 answer

How to make Eureka really work on Cloud Foundry (cf)?

In cloud foundry all apps are accessible via cloud foundry load balancers. Each load balancer has an url under which to call the app. Even though there is a hidden way (e.g. X-CF-APP-INSTANCE), it is not meant to call an app instance…
0
votes
1 answer

Eureka registration based on host

I'm working with a simple example of a Spring Boot Eureka service registration. I am using spring-boot-starter 1.5.4.RELEASE, spring-cloud-starter-eureka 1.3.1.RELEASE. The eureka server should register the client instance only if the registration…
Raja
  • 11
0
votes
0 answers

JHipster Registry on Cloud Foundry

I am having issues getting the jhipster registry to work with cloud foundry. Here's what I am trying to do I deployed Jhipster registry to cloudfoundry. I see the Jhipster Registry app running fine. I can see the app dashboard in my browser. Now I…
0
votes
1 answer

Spring Cloud Eureka Register : Connection refused

I just want to write a microservice demo basing on Spring Cloud, but it goes wrong all the time. Source code as follows: Eureka Server: pom.xml org.springframework.boot
Shuai Junlan
  • 535
  • 1
  • 6
  • 22
0
votes
1 answer

Spring Ribbon RestTemplate - Mix Eureka and Real URLs

I have a need to mix calls to a Spring Rest Template using either a Eureka-compliant service name (example-service-name) or a real url (http://my-url.com). The Eureka-friendly URLs work fine, as Ribbon can look them up without issue. Obviously real…
JHarnach
  • 3,944
  • 7
  • 43
  • 48
0
votes
0 answers

Spring : Display Eureka Services as down instead of removing

I have a Eureka Server and have numerous clients. Now whenever any service gets registered it gets displayed on Eureka Page. When i kill a particular service now i want to still display it on the page with the status as down. But what is happening…
sTg
  • 4,313
  • 16
  • 68
  • 115
0
votes
1 answer

spring cloud netflix - using EurekaClient without Jersey throws unrecognized field exception

I have an eureka server - demo-eurekaserver - and two registering services - demo-eurekaclient and demo-feignclient all using spring-boot-starter-parent: 2.0.0.RELEASE spring-cloud version: Finchley.BUILD-SNAPSHOT One of the services…
tenticon
  • 2,639
  • 4
  • 32
  • 76
0
votes
1 answer

docker linking not working

I have two docker containers on my local machine from my two spring boot applications Eureka discovery client (discovery ) My service (validation ) I have to register myservice with Eureka client. I am able to do it when I run these two spring…
Rohit
  • 51
  • 1
  • 9
0
votes
1 answer

Spring Cloud Netflix | Eureka not registering when deployed on ECS

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…
0
votes
2 answers

register postgres with eureka with out docker image

How to register a database server like a "PostgreSQL" or any other sql database with eureka server and use it in spring boot micro service?