koushikkothagal / spring-boot-microservices-workshop

738 stars 1.13k forks source link

2 Instances in Eureka server - One is my own local system. why? #8

Closed ssiva89 closed 4 years ago

ssiva89 commented 4 years ago

Hi , i've registered the MovieInfoService as client in Eureka server. i get to see two instances and one of them is my own local system. i want to know how the Eureka server is taking it as a client.?

Eureka server - 2 instances

viktrine commented 4 years ago

Hi, by default a Eureka server is a Eureka client. To avoid this, add the following to your property file :

#Registry settings
eureka:
  client:
    register-with-eureka: false
    fetch-registry: false

Thank you.

ssiva89 commented 4 years ago

hi @viktrine ,

Thank you!!