So, after some other messages and Spencer's answer, I checked and my configuration was wrong. After I changed it, it answers correctly.
These are the settings of Eureka. I am running 2 eureka servers, one with peer1 profile and the other with peer2 profile.
--- spring: profiles: peer1 # not standalone server: port: 8761 eureka: instance: hostname: peer2 leaseRenewalIntervalInSeconds: 3 client: serviceUrl: defaultZone: http:
The service I'm connecting to is configured as follows
eureka: client: registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8761/eureka/,http://localhost:8762/eureka/ instance: statusPageUrlPath: /${info.app.name}/manage/info homePageUrlPath: /${info.app.name}/manage healthCheckUrlPath: /${info.app.name}/manage/health preferIpAddress: true
After I started my service, I see that it connects to both discovery services, and if I kill it, it will be visible in another discovery service.
source share