当前位置:网站首页>Eureka自我保护
Eureka自我保护
2022-07-03 11:53:00 【只因为你而温柔】
Eureka自我保护
故障现象
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-qdLkNhES-1654355596457)(/Users/xiaoge/Downloads/assests/02C3F3E4-A64A-4347-9CB4-9E5A836B9473.png)]](/img/a1/e130bd4a78e6f7f4c577c236e5c4cc.png)
导致原因
一句话:某时刻 一个微服务不可用了,Eureka不会立刻清理,依旧会对该服务的信息进行保存
属于CAP里面的AP分支
禁止自我保护—EurekaServer端
出产默认,自我保护机制是开启的
eureka.server.enable-self-preservation=true使用eureka.server.enable-self-preservation=false 可以禁用自我保护模式
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-wbJ7QZE4-1654355596459)(/Users/xiaoge/Downloads/assests/0C62312C-F235-4A49-AE6C-14113B4C182E.png)]](/img/94/f24fac83001fdb3c4926495c16500e.png)
关闭效果
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MZaLVJcv-1654355596460)(/Users/xiaoge/Downloads/assests/A5FF5BFC-35E6-434D-83D3-BD2B3E3D4AED.png)]](/img/27/3182f18006d1731ed4ec54ed7721ed.png)
在eurekaServer端7001处设置关闭自我保护机制
EurekaClient端
默认
eureka.instance.lease-renewal-interval-in-seconds=30 单位为秒(默认是30秒) eureka.instance.lease-expiration-duration-in-seconds=90 单位为秒(默认是390秒)配置
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-AA9AQbya-1654355596467)(/Users/xiaoge/Downloads/assests/2004DCF3-002E-43EB-B292-D7E29E715A28.png)]](/img/97/88a0e2740e075d0642c4c8591b35d4.png)
测试
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-r8WsrQU8-1654355596468)(/Users/xiaoge/Downloads/assests/9AC279FE-4292-4E08-BF67-FB5E72670203.png)]](/img/76/facdecc052d74b7721f93c8ff83544.png)
边栏推荐
- Adult adult adult
- Basic knowledge of OpenGL (sort it out according to your own understanding)
- If you can't learn, you have to learn. Jetpack compose writes an im app (II)
- Dart: About zone
- Jsup crawls Baidu Encyclopedia
- Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
- [MySQL special] read lock and write lock
- Introduction to concurrent programming (I)
- Unicode encoding table download
- QT OpenGL rotate, pan, zoom
猜你喜欢

The future of cloud computing cloud native
![[learning notes] DP status and transfer](/img/5e/59c64d2fe08b89fba2d7e1e6de2761.png)
[learning notes] DP status and transfer

Kubernetes three dozen probes and probe mode

Self made pop-up input box, input text, and click to complete the event.

Prompt unread messages and quantity before opening chat group

PHP export word method (one MHT)

New features of ES6

ES6 standard

Is BigDecimal safe to calculate the amount? Look at these five pits~~

Laravel time zone timezone
随机推荐
2.8 overview of ViewModel knowledge
1-1 token
OpenGL shader use
Oracle advanced (I) realize DMP by expdp impdp command
Redis
Shutter: add gradient stroke to font
Display time with message interval of more than 1 minute in wechat applet discussion area
Integer string int mutual conversion
During FTP login, the error "530 login incorrect.login failed" is reported
网络通讯之Socket-Tcp(一)
[embedded] - Introduction to four memory areas
The difference between lambda and anonymous inner class
PHP export word method (phpword)
01_ Using the concurrent tool class library, is thread safety safe
Use of atomicinteger
Lambda表达式
lambda与匿名内部类的区别
Integer int compare size
Why can't my MySQL container start
2.6 preliminary cognition of synergetic couroutines