Spring cloud Eureka server is NOT replicating each other, displaying warning -
i using 2 eureka server in spring cloud replicate each other, when open page @ http://localhost:8761, saw message:
renewals lesser threshold. self preservation mode turned off.this may not protect instance expiry in case of network/other problems.
the eureka application.xml this:
server: port: ${server.instance.port:5678} spring: application: name: nodeservice sidecar: port: ${nodeserver.instance.port:3000} health-uri: http://localhost:${nodeserver.instance.port:3000}/health.json eureka: instance: hostname: ${nodeserver.instance.name:localhost} preferipaddress: ${preferipaddress:false} leaserenewalintervalinseconds: 5 #default 30, recommended keep default metadatamap: instanceid: ${spring.application.name}:${spring.application.instance_id:${random.value}} client: serviceurl: defaultzone: http://localhost:8761/eureka/,http://localhost:8762/eureka/
so if go http://localhost:8761, see services registered, if go http://localhost:8762, see no micro-service registered.
any idea why?
it's not xml need rename "application.yml"
Comments
Post a Comment