The Springcloud service is closed but Eureka still shows Up__springcloud

Source: Internet
Author: User

This state persists for a long time, and access to the service also returns an error, but in the registry interface, the service persists and is up, and after approximately 10 minutes, a line of red characters appears: emergency! EUREKA May is incorrectly claiming instances ARE ' when THEY ' RE not. Renewals ARE Lesser THAN THRESHOLD and HENCE the instances ARE not being expired to be SAFE.


Reason: self-protection mechanism. Eureka server During the run, will count the rate of heartbeat failure within 15 minutes is less than 85%, if there is less than the situation (in a stand-alone debugging is easy to meet, the actual production environment is usually due to network instability), Eureka The server protects the current instance registration information and prompts for this warning.



Workaround:

Add the following configuration to turn off self protection

Eureka Server Application.yml

Eureka:
  server:
    enableselfpreservation:false

Service application.yml

Eureka:
  instance:
    leaserenewalintervalinseconds:1
    Leaseexpirationdurationinseconds:2


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.