EMERGENCYI EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY' RE NOT. RENEWALS ARE LESSE

简介: EMERGENCYI EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY' RE NOT. RENEWALS ARE LESSE

EMERGENCYI EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY' RE NOT. RENEWALS ARE LESSE


这是触发了Eureka的自我保护机制。当服务未按时进行心跳续约时,Eureka会统计服务实例最近15分钟心跳续约的比例是否低于了85%。在生产环境下,因为网络延迟等原因,心跳失败实例的比例很有可能超标,但是此时就把服务剔除列表并不妥当,因为服务可能没有宕机。Eureka在这段时间内不会剔除任何服务实例,直到网络恢复正常。生产环境下这很有效,保证了大多数服务依然可用,不过也有可能获取到失败的服务实例,因此服务调用者必须做好服务的失败容错,可以通过在yml中配置来关停自我保护:


eureka:
  server:
    enable-self-preservation:false#关闭自我保护模式(缺省为打开)


目录
相关文章
|
9月前
|
前端开发 开发工具
the default discovery settings are unsuitable for production use; at least one of [discovery.seed_ho
the default discovery settings are unsuitable for production use; at least one of [discovery.seed_ho
163 0
the default discovery settings are unsuitable for production use; at least one of [discovery.seed_ho
|
Java Spring
Spring上传文件报错the request was rejected because its size (15920203) exceeds the configured maximum (104...
Spring上传文件报错the request was rejected because its size (15920203) exceeds the configured maximum (104...
622 0
|
存储 负载均衡 网络性能优化
|
存储 网络协议 安全
|
安全 Java 数据安全/隐私保护
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any k
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any k
210 0
|
微服务 Spring Java
spring cloud心跳检测自我保护(EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE
EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE. Eureka server和client之间每隔30秒会进行一次心跳通信,告诉server,client还活着 在某一些时候注册在Eureka的服务已经挂掉了,但是服务却还留在Eureka的服务列表的情况。
7982 0
nullable field verification in gateway backend
Created by Wang, Jerry, last modified on Jan 24, 2015
300 0
nullable field verification in gateway backend
gateway 报错 allowedOrigins cannot contain the special value "*"
gateway 报错 allowedOrigins cannot contain the special value "*"
498 0
|
安全 人工智能
The Cloud is Taking Over Ecommerce
Ecommerce will account for 42% of total consumption growth by 2020, with 90% of that emanating from mobile e-commerce.
1243 0
Meet the First Batch of Alibaba Cloud Global MVP Members
Congratulations to our first eight Global MVP winners! Alibaba Cloud MVP winners were chosen from a field of oustanding applications.
2836 0