Eureka never unregisters a service

前端 未结 3 562
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 12:32

I\'m currently facing an issue where Eureka does not unregister a registered service. I\'ve pulled the Eureka server example straight from git hub and made only one change,

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 13:20

    I made service de-registration work by setting the below values

    Eureka server application.yml

    eureka:
      server:
        enableSelfPreservation: false
    

    Service application.yml

    eureka:
      instance:
        leaseRenewalIntervalInSeconds: 1
        leaseExpirationDurationInSeconds: 2
    

    The full example is here https://github.com/ExampleDriven/spring-cloud-eureka-example

提交回复
热议问题